Clear pythonpath and pythonhome vars on msvc like msys2 does
This commit is contained in:
parent
39c8922ff6
commit
20ec1fa354
|
@ -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__ )
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue