From d012f54a1fd21040b52bcb19a05ceeb72f3eebc9 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Fri, 18 Dec 2020 15:43:00 +0100 Subject: [PATCH] set `_initialized` to True on `_initialize` call --- pype/lib/terminal.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pype/lib/terminal.py b/pype/lib/terminal.py index cdf102a499..043869130a 100644 --- a/pype/lib/terminal.py +++ b/pype/lib/terminal.py @@ -40,6 +40,9 @@ class Terminal: it's terminal object. Colorized output is not used if import of python module or terminal object creation fails. """ + # Mark that Terminal's initialization was already triggered + Terminal._initialized = True + from . import env_value_to_bool use_colors = env_value_to_bool( "PYPE_LOG_NO_COLORS", default=Terminal.use_colors