Merge pull request #282 from yglukhov/fix-install-from-source
Fixed installation from git dir
This commit is contained in:
commit
2a42052099
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.
|
||||
import src/nimblepkg/common
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue