Unverified Commit c82eec2e authored by Guilhem Saurel's avatar Guilhem Saurel Committed by GitHub
Browse files

Merge pull request #8 from nim65s/devel

PYTHONPATH default to empty string, fix #5
parents 00fc555e 3dacfd28
Pipeline #5793 passed with stage
in 3 minutes and 27 seconds
......@@ -147,7 +147,7 @@ startupPython()
{
std::ofstream aof(LOG_PYTHON.c_str());
runPython (aof, "import sys, os", *interpreter_);
runPython (aof, "pythonpath = os.environ['PYTHONPATH']", *interpreter_);
runPython (aof, "pythonpath = os.environ.get('PYTHONPATH', '')", *interpreter_);
runPython (aof, "path = []", *interpreter_);
runPython (aof,
"for p in pythonpath.split(':'):\n"
......@@ -163,4 +163,3 @@ startupPython()
dynamicgraph::rosInit (true);
aof.close();
}
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