mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
Fix setup.py version import. It failed on clean install, since module supybot is not yet available.
When importing 'from src', that pulled src/__init__.py, which in turn tried to import the supybot module. Now we edit sys.path and import the .py file directly.
This commit is contained in:
parent
2a40d6eb90
commit
6230a32c69
5
setup.py
5
setup.py
@ -47,7 +47,10 @@ import glob
|
|||||||
import shutil
|
import shutil
|
||||||
import os.path
|
import os.path
|
||||||
|
|
||||||
from src.version import version
|
# grab version from src directly, since we do not yet have supybot
|
||||||
|
# available as a module.
|
||||||
|
sys.path.append('./src')
|
||||||
|
from version import version
|
||||||
|
|
||||||
plugins = [s for s in os.listdir('plugins') if
|
plugins = [s for s in os.listdir('plugins') if
|
||||||
os.path.exists(os.path.join('plugins', s, 'plugin.py'))]
|
os.path.exists(os.path.join('plugins', s, 'plugin.py'))]
|
||||||
|
Loading…
Reference in New Issue
Block a user