From: NATHALIE GORE Date: Fri, 16 Sep 2022 07:51:04 +0000 (+0200) Subject: Fix for Fiche 26063 Pleiade - seen with Anthony X-Git-Tag: V9_10_0a1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8c4ff61bff59b8809c93f28d0893275d0e8e8403;p=modules%2Fkernel.git Fix for Fiche 26063 Pleiade - seen with Anthony --- diff --git a/bin/salomeContext.py b/bin/salomeContext.py index 1d24a808e..865b17557 100755 --- a/bin/salomeContext.py +++ b/bin/salomeContext.py @@ -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] #