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,12 +24,12 @@ 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:
module_scenario = import_module(scenario_name)
except ImportError:
print("Cannot import " + scenario_name + ". Check if the path is correct")
sys.exit(1)
scenario_name = "hpp.corbaserver.rbprm.scenarios." + scenario_name
try:
module_scenario = import_module(scenario_name)
except ImportError:
print("Cannot import " + scenario_name + ". Check if the path is correct")
sys.exit(1)
# kill already existing instance of the viewer/server
subprocess.run(["killall", "gepetto-gui"])
......
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