add recipes to pythonpath

This commit is contained in:
Daniel 2023-12-07 12:59:01 +01:00
parent 15a7f94a01
commit 78cd4c126b

View file

@ -31,6 +31,13 @@ ENV_PATHS = ";".join([x.as_posix() for x in ENV_FILES])
RECIPES_DIR = Path("../recipes").resolve()
OUTPUT_DIR = Path("./test-output").resolve()
# -------------------------------- pythonpath -------------------------------- #
# add recipes dir to pythonpath, so that python imports from there are possible
# the custom classes of Runner will be imported from there
os.environ["PYTHONPATH"] = RECIPES_DIR.as_posix()
# ------------------------------------ run ----------------------------------- #
subprocess.run(
[