From 8c4ff61bff59b8809c93f28d0893275d0e8e8403 Mon Sep 17 00:00:00 2001 From: NATHALIE GORE Date: Fri, 16 Sep 2022 09:51:04 +0200 Subject: [PATCH] Fix for Fiche 26063 Pleiade - seen with Anthony --- bin/salomeContext.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] # -- 2.39.2