Fix macros bug
This commit is contained in:
parent
69e372beea
commit
c3228683fa
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue