diff options
| author | Ted Gould <ted@gould.cx> | 2008-10-28 04:45:31 +0000 |
|---|---|---|
| committer | Ted Gould <ted@canonical.com> | 2008-10-28 04:45:31 +0000 |
| commit | dc743aafd8b8c2d9c4e081fc937a94a26c055203 (patch) | |
| tree | 98748c7465ac4ce06d1cbc359f767bcf0422cc85 /src/main.cpp | |
| parent | From trunk (diff) | |
| download | inkscape-dc743aafd8b8c2d9c4e081fc937a94a26c055203.tar.gz inkscape-dc743aafd8b8c2d9c4e081fc937a94a26c055203.zip | |
Merge from trunk
(bzr r6886)
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; } |
