Commit 38c474f9 authored by Pierre Fernbach's avatar Pierre Fernbach
Browse files

[Scripts] fix main when giving absolute path to scenario_name

parent 2a0c417d
......@@ -24,10 +24,10 @@ try:
module_scenario = import_module(scenario_name)
except ImportError:
print("Cannot import " + scenario_name + " try to prepend path")
scenario_name = "hpp.corbaserver.rbprm.scenarios." + scenario_name
try:
scenario_name = "hpp.corbaserver.rbprm.scenarios." + scenario_name
try:
module_scenario = import_module(scenario_name)
except ImportError:
except ImportError:
print("Cannot import " + scenario_name + ". Check if the path is correct")
sys.exit(1)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment