From ad0c9a548bf9e0c5038f2731aef766e0d0e8c266 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Sat, 12 Jan 2019 18:37:41 +0100 Subject: [PATCH] Remove PYTHONPATH from the environment on Windows This make sure to use the the modules distributed with LyX, avoiding reconfigure failures. --- src/support/os_win32.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/support/os_win32.cpp b/src/support/os_win32.cpp index 145d506592..e15af13acf 100644 --- a/src/support/os_win32.cpp +++ b/src/support/os_win32.cpp @@ -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). -- 2.39.5