Fixed installation from git dir
This commit is contained in:
parent
82868ea818
commit
de59767f43
1 changed files with 4 additions and 1 deletions
|
|
@ -1,4 +1,7 @@
|
||||||
when fileExists("src/nimblepkg/common.nim"):
|
import ospaths
|
||||||
|
template thisModuleFile: string = instantiationInfo(fullPaths = true).filename
|
||||||
|
|
||||||
|
when fileExists(thisModuleFile.parentDir / "src/nimblepkg/common.nim"):
|
||||||
# In the git repository the Nimble sources are in a ``src`` directory.
|
# In the git repository the Nimble sources are in a ``src`` directory.
|
||||||
import src/nimblepkg/common
|
import src/nimblepkg/common
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue