Fixed installation from git dir

This commit is contained in:
Yuriy Glukhov 2016-12-10 11:39:32 +02:00
commit de59767f43

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: