Update environment var for Python to allow running from build or install folder

This commit is contained in:
Peter Montgomery 2021-06-15 01:12:45 +00:00 committed by Jon Evans
parent abc5a6e775
commit b4f5b6ef3c
1 changed files with 1 additions and 1 deletions

View File

@ -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() );
}