DLR-TS / tsc

coupling TAPAS and SUMO
Eclipse Public License 2.0
10 stars 3 forks source link

tsc imports script modules from strange locations #45

Open behrisch opened 2 years ago

behrisch commented 2 years ago

the tests import from files which are installed in the repo root

behrisch commented 2 years ago

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: