Support pyadonis as pip-installed package
This commit is contained in:
parent
2203ecd69c
commit
57b8cf300d
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,5 @@
|
|||
mysqlclient
|
||||
paramiko
|
||||
sshtunnel
|
||||
|
||||
git+https://kumig.it/kumisystems/pyadonis.git
|
|
@ -35,6 +35,10 @@ class MonsterConfig:
|
|||
try:
|
||||
self.pyadonis = Path(parser["MONSTER"]["PyAdonis"])
|
||||
except KeyError:
|
||||
try:
|
||||
import pyadonis
|
||||
self.pyadonis = Path(pyadonis.__path__[0])
|
||||
except ImportError:
|
||||
print(f"PyAdonis is not defined in the MONSTER section of {path}, some features may be missing.")
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue