From 78cd4c126b2974062f3831609189315276ebcab4 Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 7 Dec 2023 12:59:01 +0100 Subject: [PATCH] add recipes to pythonpath --- main.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/main.py b/main.py index e7b02a2..9de2d4f 100644 --- a/main.py +++ b/main.py @@ -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( [