windows python path setup:
allow to set the PYTHONHOME variable
This commit is contained in:
@@ -109,7 +109,11 @@ int main( int argc, char ** argv )
|
||||
_putenv("PYTHONPATH=");
|
||||
// https://forum.freecadweb.org/viewtopic.php?f=4&t=18288
|
||||
// https://forum.freecadweb.org/viewtopic.php?f=3&t=20515
|
||||
_putenv("PYTHONHOME=");
|
||||
const char* fc_py_home = getenv("FC_PYTHONHOME");
|
||||
if (fc_py_home)
|
||||
_putenv_s("PYTHONHOME", fc_py_home);
|
||||
else
|
||||
_putenv("PYTHONHOME=");
|
||||
#endif
|
||||
|
||||
#if defined (FC_OS_WIN32)
|
||||
|
||||
Reference in New Issue
Block a user