Browse Source

modernize python initialization

Branan Purvine-Riley 14 years ago
parent
commit
aeff8224b2
  1. 2
      Sources/Plasma/FeatureLib/pfPython/cyPythonInterface.cpp

2
Sources/Plasma/FeatureLib/pfPython/cyPythonInterface.cpp

@ -838,6 +838,8 @@ void PythonInterface::initPython()
// initialize the Python stuff // initialize the Python stuff
// let Python do some initialization... // let Python do some initialization...
Py_SetProgramName("plasma"); Py_SetProgramName("plasma");
Py_NoSiteFlag = 1;
Py_IgnoreEnvironmentFlag = 1;
Py_Initialize(); Py_Initialize();
#if defined(HAVE_CYPYTHONIDE) && !defined(PLASMA_EXTERNAL_RELEASE) #if defined(HAVE_CYPYTHONIDE) && !defined(PLASMA_EXTERNAL_RELEASE)

Loading…
Cancel
Save