From 241d4cb27eaef8f0f464fbc38572bc34f82bb90f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Touceda?= Date: Fri, 12 Jul 2013 12:40:13 -0300 Subject: Only setenv on non-windows systems --- src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) 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(full_path.string().c_str())); const char *prog_name = "leap-client"; -- cgit v1.2.3