mirror of
https://github.com/ModOrganizer2/modorganizer-plugin_python.git
synced 2026-07-27 14:03:33 -07:00
Revert "Fix libffi not found"
This commit is contained in:
@@ -1254,10 +1254,8 @@ bool PythonRunner::initPython(const QString &pythonPath)
|
||||
|
||||
PySys_SetArgv(0, (wchar_t**)&argBuffer);
|
||||
|
||||
auto os = bpy::import("os");
|
||||
auto mainModule = bpy::import("__main__");
|
||||
auto mainNamespace = mainModule.attr("__dict__");
|
||||
mainNamespace["os"] = os;
|
||||
bpy::object mainModule = bpy::import("__main__");
|
||||
bpy::object mainNamespace = mainModule.attr("__dict__");
|
||||
mainNamespace["sys"] = bpy::import("sys");
|
||||
mainNamespace["moprivate"] = bpy::import("moprivate");
|
||||
mainNamespace["mobase"] = bpy::import("mobase");
|
||||
@@ -1267,10 +1265,6 @@ bool PythonRunner::initPython(const QString &pythonPath)
|
||||
"sys.excepthook = lambda x, y, z: sys.__excepthook__(x, y, z)\n",
|
||||
mainNamespace);
|
||||
|
||||
// add dlls directory
|
||||
const auto dlls = QCoreApplication::applicationDirPath().toStdString() + "/dlls";
|
||||
os.attr("add_dll_directory")(dlls);
|
||||
|
||||
configure_python_logging(mainNamespace["mobase"]);
|
||||
|
||||
PyEval_SaveThread();
|
||||
|
||||
Reference in New Issue
Block a user