Update environment var for Python to allow running from build or install folder
This commit is contained in:
parent
abc5a6e775
commit
b4f5b6ef3c
|
@ -113,7 +113,7 @@ bool SCRIPTING::scriptingSetup()
|
||||||
pyHome.Normalize();
|
pyHome.Normalize();
|
||||||
|
|
||||||
// MUST be called before Py_Initialize so it will to create valid default lib paths
|
// 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() );
|
Py_SetPythonHome( pyHome.GetFullPath().c_str() );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue