From c3228683fa91e01c75a8676479ee13a41c7f5a02 Mon Sep 17 00:00:00 2001 From: Ganesh Viswanathan Date: Sat, 20 Jun 2020 14:21:59 -0500 Subject: [PATCH] Fix macros bug --- nimterop/build/nimconf.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nimterop/build/nimconf.nim b/nimterop/build/nimconf.nim index 3ba5ed0..c87a60f 100644 --- a/nimterop/build/nimconf.nim +++ b/nimterop/build/nimconf.nim @@ -3,6 +3,8 @@ import json, os, osproc, sets, strformat, strutils when nimvm: when (NimMajor, NimMinor, NimPatch) >= (1, 2, 0): import std/compilesettings + else: + import macros else: discard @@ -55,7 +57,6 @@ proc getProjectDir*(): string = result = querySetting(projectFull).parentDir() else: # Get from `macros` - import macros result = getProjectPath() else: discard