]> git.lyx.org Git - lyx.git/commitdiff
Remove PYTHONPATH from the environment on Windows
authorEnrico Forestieri <forenr@lyx.org>
Sat, 12 Jan 2019 17:37:41 +0000 (18:37 +0100)
committerEnrico Forestieri <forenr@lyx.org>
Sat, 12 Jan 2019 17:37:41 +0000 (18:37 +0100)
This make sure to use the the modules distributed with LyX,
avoiding reconfigure failures.

src/support/os_win32.cpp

index 145d5065923c7ce80deac55f66a82cf03d539775..e15af13acfbdd0fd0f6f4d241bf712fa6f3d9d66 100644 (file)
@@ -158,6 +158,11 @@ void init(int argc, char ** argv[])
         */
 
 
+       // Remove PYTHONPATH from the environment as it may point to an
+       // external python installation and cause reconfigure failures.
+       unsetEnv("PYTHONPATH");
+
+
 #if defined(_MSC_VER) && (_MSC_VER >= 1900)
        // Removing an argument from argv leads to an assertion on Windows
        // when compiling with MSVC 2015 in debug mode (see bug #10440).