diff options
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 03beb0734..229ef65f7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -36,6 +36,7 @@ #include <cstring> #include <string> #include <locale.h> +#include <stdlib.h> #include <popt.h> #ifndef POPT_TABLEEND @@ -521,7 +522,12 @@ static int set_extensions_env() #endif tmp += oldenv; } +#ifdef WIN32 + /// \todo this does not work on windows, cannot find the setenv method or an equivalent. + //setenv("PYTHONPATH", tmp.c_str(), 1); +#else setenv("PYTHONPATH", tmp.c_str(), 1); +#endif return 0; } |
