Remove PYTHONPATH from the environment on Windows

This make sure to use the the modules distributed with LyX,
avoiding reconfigure failures.
This commit is contained in:
Enrico Forestieri 2019-01-12 18:37:41 +01:00
parent 472bdf5910
commit ad0c9a548b

View 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).