Block off setting pythonhome and pythonpath wrongly on MSVC
This commit is contained in:
parent
b21da9672f
commit
39c8922ff6
|
@ -215,7 +215,9 @@ PGM_BASE* PgmOrNull()
|
|||
static bool scriptingSetup()
|
||||
{
|
||||
|
||||
#if defined( __WINDOWS__ ) && !defined( _MSC_VER )
|
||||
#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
|
||||
wxString kipython = FindKicadFile( "python.exe" );
|
||||
|
||||
|
@ -239,6 +241,7 @@ static bool scriptingSetup()
|
|||
kipython << wxT( ";" ) << ppath;
|
||||
wxSetEnv( wxT( "PATH" ), kipython );
|
||||
}
|
||||
#endif
|
||||
|
||||
#elif defined( __WXMAC__ )
|
||||
|
||||
|
|
Loading…
Reference in New Issue