From a3707c21ba58c780b4f37fc30fa1da1038a38330 Mon Sep 17 00:00:00 2001 From: Marianpol Date: Mon, 17 Feb 2020 13:43:51 +0100 Subject: [PATCH] Loading scenarios fix for different DB types --- pyren/mod_ecu_scenario.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyren/mod_ecu_scenario.py b/pyren/mod_ecu_scenario.py index c2871bf..e3db8a2 100755 --- a/pyren/mod_ecu_scenario.py +++ b/pyren/mod_ecu_scenario.py @@ -26,7 +26,10 @@ def playScenario(command, ecu, elm): if os.path.isfile('./'+scenarioName+'.py'): scen = __import__( scenarioName ) - scen.run( elm, ecu, command, './'+path+scenarioData ) + if mod_globals.clip_arc: + scen.run( elm, ecu, command, '../'+path+scenarioData ) + else: + scen.run( elm, ecu, command, './'+path+scenarioData ) return print "\nThere is scenarium. I do not support them!!!\n"