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
|
mysqlclient
|
||||||
paramiko
|
paramiko
|
||||||
sshtunnel
|
sshtunnel
|
||||||
|
|
||||||
|
git+https://kumig.it/kumisystems/pyadonis.git
|
|
@ -35,7 +35,11 @@ class MonsterConfig:
|
||||||
try:
|
try:
|
||||||
self.pyadonis = Path(parser["MONSTER"]["PyAdonis"])
|
self.pyadonis = Path(parser["MONSTER"]["PyAdonis"])
|
||||||
except KeyError:
|
except KeyError:
|
||||||
print(f"PyAdonis is not defined in the MONSTER section of {path}, some features may be missing.")
|
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.")
|
||||||
|
|
||||||
|
|
||||||
def __init__(self, path: Union[str, Path]) -> None:
|
def __init__(self, path: Union[str, Path]) -> None:
|
||||||
|
|
Loading…
Reference in a new issue