Fix import inside nimble.nimble when Nimble is installed.

This commit is contained in:
Dominik Picheta 2016-10-26 20:16:35 +02:00
commit d854bc64c8

View file

@ -1,4 +1,10 @@
import src/nimblepkg/common
when dirExists("src"):
# In the git repository the Nimble sources are in a ``src`` directory.
import src/nimblepkg/common
else:
# When the package is installed, the ``src`` directory disappears.
import nimblepkg/common
# Package
version = nimbleVersion