You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This seems to be harder than anticipated. The root dir of the repo is always at the begin of sys.path if you start tsc_main.py so if the user decides to run install_scenario_templates.py right there (which is currently encouraged by the docs) the import of the user installed scenario_templates will always come before the scenario_templates of the test. I see hree options:
move the python scripts to a src dir such that the repo root dir is not automatically added to sys.path
con: violates repo structure assumptions for python projects
pro: gives better separation of code and data
use a different name for the scenario_template dir in the tests
con: introduces an artificial difference between test environment and "production"
pro: easily done
insert an entry at the front of sys.path when modifying it in tsc_main
con: may not help at all if there is no scripting module
the tests import from files which are installed in the repo root
The text was updated successfully, but these errors were encountered: