1 --- ParaView-5.11.0_ref/VTK/Utilities/PythonInterpreter/vtkPythonInterpreter.cxx 2022-11-18 15:26:55.000000000 +0100
2 +++ ParaView-5.11.0_new/VTK/Utilities/PythonInterpreter/vtkPythonInterpreter.cxx 2024-04-18 14:25:32.000000000 +0200
7 -#if PY_VERSION_HEX >= 0x03080000
8 - vtkPythonScopeGilEnsurer gilEnsurer(false, true);
9 - CloseDLLDirectoryCookie();
10 - PyObject* os = PyImport_ImportModule("os");
13 - PyObject* add_dll_directory = PyObject_GetAttrString(os, "add_dll_directory");
14 - if (add_dll_directory && PyCallable_Check(add_dll_directory))
16 - PyObject* newpath = PyUnicode_FromString(vtkdir.c_str());
17 - DLLDirectoryCookie = PyObject_CallFunctionObjArgs(add_dll_directory, newpath, nullptr);
18 - Py_XDECREF(newpath);
21 - Py_XDECREF(add_dll_directory);
27 if (systools::GetEnv("PATH", env_path))
32 systools::PutEnv(std::string("PATH=") + env_path);