add acre to sys path in igniter as pype.py has invalid relative path to repos

This commit is contained in:
iLLiCiTiT 2020-12-04 16:40:59 +01:00
parent 8e39835e4a
commit 8b7b62c044
2 changed files with 27 additions and 21 deletions

15
pype.py
View file

@ -44,20 +44,13 @@ import re
import sys
import traceback
from igniter.tools import load_environments
from igniter.tools import load_environments, add_acre_to_sys_path
try:
import acre
except ImportError:
acre_dir = os.path.join(
os.path.dirname(os.path.abspath(__file__)),
"repos",
"acre"
)
sys.path.append(acre_dir)
import acre
from igniter import BootstrapRepos
add_acre_to_sys_path()
import acre
def set_environments() -> None:
"""Set loaded environments.