summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomás Touceda <chiiph@leap.se>2013-07-12 12:40:13 -0300
committerTomás Touceda <chiiph@leap.se>2013-07-12 12:40:13 -0300
commit241d4cb27eaef8f0f464fbc38572bc34f82bb90f (patch)
tree547c2336b971c44ea9fc4441c3fed251eb9fc7e0
parent51ab5d1094ba8f3b4598d45b2ec53668b62ed09c (diff)
Only setenv on non-windows systems
-rw-r--r--src/main.cpp2
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";