Fix macros bug

This commit is contained in:
Ganesh Viswanathan 2020-06-20 14:21:59 -05:00
commit c3228683fa

View file

@ -3,6 +3,8 @@ import json, os, osproc, sets, strformat, strutils
when nimvm: when nimvm:
when (NimMajor, NimMinor, NimPatch) >= (1, 2, 0): when (NimMajor, NimMinor, NimPatch) >= (1, 2, 0):
import std/compilesettings import std/compilesettings
else:
import macros
else: else:
discard discard
@ -55,7 +57,6 @@ proc getProjectDir*(): string =
result = querySetting(projectFull).parentDir() result = querySetting(projectFull).parentDir()
else: else:
# Get from `macros` # Get from `macros`
import macros
result = getProjectPath() result = getProjectPath()
else: else:
discard discard