Merge pull request #282 from yglukhov/fix-install-from-source

Fixed installation from git dir
This commit is contained in:
Dominik Picheta 2016-12-23 16:35:49 +01:00 committed by GitHub
commit 2a42052099

View file

@ -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: