]> SALOME platform Git repositories - tools/sat.git/commitdiff
Salome HOME
bug fix : non protected call to crouzet crash on windows
authorcrouzet <nicolas.crouzet@cea.fr>
Fri, 13 Dec 2019 12:55:06 +0000 (13:55 +0100)
committercrouzet <nicolas.crouzet@cea.fr>
Fri, 13 Dec 2019 12:55:06 +0000 (13:55 +0100)
src/debug.py

index a7c50e85aade084bc5165d88399d67446349cb95..46c9efd30a964d72b26ca4b4f52f6060d7fba4fa 100755 (executable)
@@ -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=' '):