From 532d5f8b69e35d437abf7141ff82cf763a102127 Mon Sep 17 00:00:00 2001 From: stele Date: Sun, 12 Jul 2020 16:22:17 +0200 Subject: [PATCH] Logging of disabled python module. --- PyInt.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/PyInt.cpp b/PyInt.cpp index 705f28be..51a9fe7e 100644 --- a/PyInt.cpp +++ b/PyInt.cpp @@ -198,8 +198,10 @@ auto python_taskqueue::init() -> bool { // release the lock, save the state for future use m_mainthread = PyEval_SaveThread(); - - WriteLog( "Python Interpreter: setup complete" ); + if( Global.python_enabled == true ) + WriteLog( "Python Interpreter: setup complete" ); + else + WriteLog( "Python module disabled" ); // init workers for( auto &worker : m_workers ) {