Skip to content
Snippets Groups Projects
Commit 67fcf2b1 authored by Florent Lamiraux's avatar Florent Lamiraux Committed by Florent Lamiraux florent@laas.fr
Browse files

Do not add current directory in sys.path.

parent c08dafc3
No related branches found
No related tags found
No related merge requests found
...@@ -22,10 +22,7 @@ ...@@ -22,10 +22,7 @@
namespace dynamicgraph { namespace dynamicgraph {
namespace python { namespace python {
static const std::string pythonPrefix[5] = { static const std::string pythonPrefix[5] = {
"import sys\n",
"import traceback\n", "import traceback\n",
"if '' not in sys.path: sys.path.append('')\n",
"sys.argv = ['']\n",
"def display(s): return str(s) if not s is None else None" "def display(s): return str(s) if not s is None else None"
}; };
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment