From 39c8922ff678e6d49e8fd7735197e63c0500acde Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Wed, 10 Feb 2021 23:54:35 -0500 Subject: [PATCH] Block off setting pythonhome and pythonpath wrongly on MSVC --- pcbnew/pcbnew.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pcbnew/pcbnew.cpp b/pcbnew/pcbnew.cpp index 52ae682de8..a1de3a7c98 100644 --- a/pcbnew/pcbnew.cpp +++ b/pcbnew/pcbnew.cpp @@ -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__ )