mirror of
https://github.com/ModOrganizer2/modorganizer-plugin_python.git
synced 2026-07-27 14:03:33 -07:00
Add handler for Python logging module.
This commit is contained in:
@@ -39,6 +39,7 @@
|
||||
#include "tuple_helper.h"
|
||||
#include "variant_helper.h"
|
||||
#include "converters.h"
|
||||
#include "pylogger.h"
|
||||
|
||||
using namespace MOBase;
|
||||
|
||||
@@ -1196,6 +1197,8 @@ bool PythonRunner::initPython(const QString &pythonPath)
|
||||
"sys.excepthook = lambda x, y, z: sys.__excepthook__(x, y, z)\n",
|
||||
mainNamespace);
|
||||
|
||||
configure_python_logging();
|
||||
|
||||
PyEval_SaveThread();
|
||||
return true;
|
||||
} catch (const bpy::error_already_set&) {
|
||||
|
||||
Reference in New Issue
Block a user