From a3fef59b7849e937e22697bfa14b4a6be722de90 Mon Sep 17 00:00:00 2001 From: prascle Date: Tue, 3 Feb 2004 15:39:54 +0000 Subject: [PATCH] PR: more robust (from Mikhail PONIKAROV) --- src/Logger/SALOME_Trace.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Logger/SALOME_Trace.py b/src/Logger/SALOME_Trace.py index ab30f3379..900693e41 100644 --- a/src/Logger/SALOME_Trace.py +++ b/src/Logger/SALOME_Trace.py @@ -15,8 +15,9 @@ import time import os trace="local" -if (os.environ["SALOME_trace"] == "with_logger"): - trace="logger" +if (os.environ.has_key("SALOME_trace")): + if (os.environ["SALOME_trace"] == "with_logger"): + trace="logger" class SALOME_Trace : def __init__(self): -- 2.39.2