Fix import inside nimble.nimble when Nimble is installed.
This commit is contained in:
parent
2eec391732
commit
d854bc64c8
1 changed files with 7 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue