Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilhem Saurel
hpp-rbprm-corba
Commits
38c474f9
Commit
38c474f9
authored
Mar 11, 2020
by
Pierre Fernbach
Browse files
[Scripts] fix main when giving absolute path to scenario_name
parent
2a0c417d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/hpp/corbaserver/rbprm/__main__.py
View file @
38c474f9
...
...
@@ -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"
])
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment