From 20ec1fa354da504fba98714d7b66201e3bda64a2 Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Wed, 10 Feb 2021 23:58:58 -0500 Subject: [PATCH] Clear pythonpath and pythonhome vars on msvc like msys2 does --- pcbnew/pcbnew.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/pcbnew/pcbnew.cpp b/pcbnew/pcbnew.cpp index a1de3a7c98..37918fb791 100644 --- a/pcbnew/pcbnew.cpp +++ b/pcbnew/pcbnew.cpp @@ -216,8 +216,6 @@ static bool scriptingSetup() { #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" ); @@ -241,7 +239,6 @@ static bool scriptingSetup() kipython << wxT( ";" ) << ppath; wxSetEnv( wxT( "PATH" ), kipython ); } - #endif #elif defined( __WXMAC__ )