Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1diff --git a/src/nemo-python.c b/src/nemo-python.c 2index 8d2acdb..ee24143 100644 3--- a/src/nemo-python.c 4+++ b/src/nemo-python.c 5@@ -197,7 +197,7 @@ nemo_python_init_python (void) 6 } 7 8 debug("Sanitize the python search path"); 9- PyRun_SimpleString("import sys; sys.path = [path for path in sys.path if path]"); 10+ PyRun_SimpleString("import sys; import os; sys.path = [path for path in sys.path if path]; sys.path += os.getenv(\"NEMO_PYTHON_SEARCH_PATH\").split(os.pathsep)"); 11 if (PyErr_Occurred()) 12 { 13 PyErr_Print();