Clear pythonpath and pythonhome vars on msvc like msys2 does

This commit is contained in:
Marek Roszko 2021-02-10 23:58:58 -05:00
parent 39c8922ff6
commit 20ec1fa354
1 changed files with 0 additions and 3 deletions

View File

@ -216,8 +216,6 @@ static bool scriptingSetup()
{ {
#if defined( __WINDOWS__ ) #if defined( __WINDOWS__ )
// for msvc, we set python library paths via the python c-api in pcbnewInitPythonScripting instead
#if !defined( _MSC_VER )
// If our python.exe (in kicad/bin) exists, force our kicad python environment // If our python.exe (in kicad/bin) exists, force our kicad python environment
wxString kipython = FindKicadFile( "python.exe" ); wxString kipython = FindKicadFile( "python.exe" );
@ -241,7 +239,6 @@ static bool scriptingSetup()
kipython << wxT( ";" ) << ppath; kipython << wxT( ";" ) << ppath;
wxSetEnv( wxT( "PATH" ), kipython ); wxSetEnv( wxT( "PATH" ), kipython );
} }
#endif
#elif defined( __WXMAC__ ) #elif defined( __WXMAC__ )