]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Fix for Fiche 26063 Pleiade - seen with Anthony
authorNATHALIE GORE <ng13417n@dsp0940623.atlas.edf.fr>
Fri, 16 Sep 2022 07:51:04 +0000 (09:51 +0200)
committerNATHALIE GORE <ng13417n@dsp0940623.atlas.edf.fr>
Fri, 16 Sep 2022 07:51:04 +0000 (09:51 +0200)
bin/salomeContext.py

index 1d24a808e84862f7a7c52c690cf70a64129097cc..865b17557abc54b1e0a99e7c14d1d45546fa33ae 100755 (executable)
@@ -195,7 +195,7 @@ class SalomeContext:
 
   """Unset environment variable"""
   def unsetVariable(self, name):
-    if os.environ.has_key(name):
+    if name in os.environ:
       del os.environ[name]
   #