Py3: fixes #0004081: Abillity to show console output when running under Python
This commit is contained in:
@@ -1980,9 +1980,13 @@ void Application::initConfig(int argc, char ** argv)
|
||||
|
||||
// Init console ===========================================================
|
||||
Base::PyGILStateLocker lock;
|
||||
if (mConfig["LoggingConsole"] == "1") {
|
||||
_pConsoleObserverStd = new ConsoleObserverStd();
|
||||
Console().AttachObserver(_pConsoleObserverStd);
|
||||
_pConsoleObserverStd = new ConsoleObserverStd();
|
||||
Console().AttachObserver(_pConsoleObserverStd);
|
||||
if (mConfig["LoggingConsole"] != "1") {
|
||||
_pConsoleObserverStd->bMsg = false;
|
||||
_pConsoleObserverStd->bLog = false;
|
||||
_pConsoleObserverStd->bWrn = false;
|
||||
_pConsoleObserverStd->bErr = false;
|
||||
}
|
||||
if (mConfig["Verbose"] == "Strict")
|
||||
Console().UnsetConsoleMode(ConsoleSingleton::Verbose);
|
||||
|
||||
Reference in New Issue
Block a user