From ab7fa9e281ddcde2118acd3cc0337685230f1ac4 Mon Sep 17 00:00:00 2001 From: baldurk Date: Wed, 7 Mar 2018 22:18:55 +0000 Subject: [PATCH] Ignore python env vars which might load incompatible libs. Refs #902 * PYTHONHOME is used *ahead* of the python36.zip on Python's default search path, so we need to suppress that to make sure it doesn't interfere. --- qrenderdoc/Code/pyrenderdoc/PythonContext.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qrenderdoc/Code/pyrenderdoc/PythonContext.cpp b/qrenderdoc/Code/pyrenderdoc/PythonContext.cpp index 93e186689..11f648d3c 100644 --- a/qrenderdoc/Code/pyrenderdoc/PythonContext.cpp +++ b/qrenderdoc/Code/pyrenderdoc/PythonContext.cpp @@ -221,6 +221,8 @@ void PythonContext::GlobalInit() Py_SetProgramName(program_name); + Py_IgnoreEnvironmentFlag = 1; + Py_Initialize(); PyEval_InitThreads();