From aeff8224b295f6102dc5915f936ac209264eea81 Mon Sep 17 00:00:00 2001 From: Branan Purvine-Riley Date: Thu, 5 May 2011 15:29:01 -0700 Subject: [PATCH] modernize python initialization --- Sources/Plasma/FeatureLib/pfPython/cyPythonInterface.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/Plasma/FeatureLib/pfPython/cyPythonInterface.cpp b/Sources/Plasma/FeatureLib/pfPython/cyPythonInterface.cpp index 1eec0183..dc600090 100644 --- a/Sources/Plasma/FeatureLib/pfPython/cyPythonInterface.cpp +++ b/Sources/Plasma/FeatureLib/pfPython/cyPythonInterface.cpp @@ -838,6 +838,8 @@ void PythonInterface::initPython() // initialize the Python stuff // let Python do some initialization... Py_SetProgramName("plasma"); + Py_NoSiteFlag = 1; + Py_IgnoreEnvironmentFlag = 1; Py_Initialize(); #if defined(HAVE_CYPYTHONIDE) && !defined(PLASMA_EXTERNAL_RELEASE)