Skip to content
Snippets Groups Projects
Commit 7d515df7 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

PYTHONPATH should not be mandatory

parent ae3e5a5b
Branches
Tags
No related merge requests found
......@@ -104,7 +104,7 @@ bool SotLoader::initialization() {
// python interpreter.
runPythonCommand("import sys, os", result, out, err);
runPythonCommand("print(\"python version:\", sys.version)", result, out, err);
runPythonCommand("pythonpath = os.environ['PYTHONPATH']", result, out, err);
runPythonCommand("pythonpath = os.environ.get('PYTHONPATH', '')", result, out, err);
runPythonCommand("path = []", result, out, err);
runPythonCommand("for p in pythonpath.split(':'):\n"
" if p not in sys.path:\n"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment