From: crouzet Date: Fri, 13 Dec 2019 12:55:06 +0000 (+0100) Subject: bug fix : non protected call to crouzet crash on windows X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=13d050f9297f0324a389b139c5284a0d7bdfff36;p=tools%2Fsat.git bug fix : non protected call to crouzet crash on windows --- diff --git a/src/debug.py b/src/debug.py index a7c50e8..46c9efd 100755 --- a/src/debug.py +++ b/src/debug.py @@ -56,6 +56,7 @@ import sys import traceback import pprint as PP import inspect +import src # Compatibility python 2/3 for unicode try: @@ -71,14 +72,13 @@ except ImportError: _debug = [False] #support push/pop for temporary activate debug outputs -_user = os.environ['USER'] # wambeke is christian at home _developers = ["christian", "wambeke"] # crouzet, kloss ... def isDeveloper(): """if you are a developer, sometimes you want verbose traces etc.""" - res = _user in _developers + res = src.architecture.get_user() in _developers return res def indent(text, amount=2, ch=' '):