windows python path setup:

allow to set the PYTHONHOME variable
This commit is contained in:
looooo
2017-11-01 08:56:55 +01:00
parent a9e1a55175
commit edcc8ac76f

View File

@@ -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)