diff options
-rw-r--r-- | src/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 9ad67bd..95ad2b6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -119,7 +119,9 @@ main(int argc, char** argv) updateIfNeeded(); auto pypath = full_path.string() + ":" + full_path.string() + "/lib/"; +#if not defined _WIN32 && not defined _WIN64 setenv("PYTHONPATH", pypath.c_str(), 1); +#endif Py_SetPythonHome(const_cast<char*>(full_path.string().c_str())); const char *prog_name = "leap-client"; |