From dcfc93acbc9901b524074a6eec80d3203b1064d6 Mon Sep 17 00:00:00 2001 From: Branan Purvine-Riley Date: Thu, 5 May 2011 21:22:42 -0700 Subject: [PATCH] Add Py_NoSiteFlag to plPythonPack --- Sources/Plasma/Apps/plPythonPack/PythonInterface.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/Plasma/Apps/plPythonPack/PythonInterface.cpp b/Sources/Plasma/Apps/plPythonPack/PythonInterface.cpp index 8d38dfc7..5a8c5c56 100644 --- a/Sources/Plasma/Apps/plPythonPack/PythonInterface.cpp +++ b/Sources/Plasma/Apps/plPythonPack/PythonInterface.cpp @@ -41,6 +41,8 @@ void PythonInterface::initPython(std::string rootDir) // initialize the Python stuff // let Python do some intialization... Py_SetProgramName("plasma"); + Py_NoSiteFlag = 1; + Py_IgnoreEnvironmentFlag = 1; Py_Initialize(); // intialize any of our special plasma python modules