remove PYTHONPATH stuff, add sys.path.append to create_runner_dict instead
This commit is contained in:
parent
4c821a92b2
commit
9121128935
2 changed files with 7 additions and 6 deletions
6
main.py
6
main.py
|
|
@ -31,12 +31,6 @@ 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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue