From b4f5b6ef3cd9174d4b6c18913abb535c26bc20b3 Mon Sep 17 00:00:00 2001 From: Peter Montgomery Date: Tue, 15 Jun 2021 01:12:45 +0000 Subject: [PATCH] Update environment var for Python to allow running from build or install folder --- scripting/python_scripting.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripting/python_scripting.cpp b/scripting/python_scripting.cpp index 748c2a9c83..8bf3ac8b06 100644 --- a/scripting/python_scripting.cpp +++ b/scripting/python_scripting.cpp @@ -113,7 +113,7 @@ bool SCRIPTING::scriptingSetup() pyHome.Normalize(); // MUST be called before Py_Initialize so it will to create valid default lib paths - if( !wxGetEnv( wxT( "KICAD_RUN_FROM_BUILD_DIR" ), nullptr ) ) + if( !wxGetEnv( wxT( "KICAD_USE_EXTERNAL_PYTHONHOME" ), nullptr ) ) { Py_SetPythonHome( pyHome.GetFullPath().c_str() ); }