Block off setting pythonhome and pythonpath wrongly on MSVC

This commit is contained in:
Marek Roszko 2021-02-10 23:54:35 -05:00
parent b21da9672f
commit 39c8922ff6
1 changed files with 4 additions and 1 deletions

View File

@ -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__ )