From fa54dbb5304a3799164b11cafd67af2a73d21b7b Mon Sep 17 00:00:00 2001 From: Jeremy ROCHER Date: Thu, 9 Jun 2016 16:13:51 +0200 Subject: [PATCH] other update with the warning --- CMakeLists.txt | 3 +-- src/salomeContext.py | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d290cc1..376d538 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -109,8 +109,7 @@ ADD_SUBDIRECTORY( doc ) # Additional files # ================ SET(_salome_context_API_SCRIPTS - #${KERNEL_ROOT_DIR}/bin/salome/salomeContext.py # No warning salomeContext - ./src/salomeContext.py + ${KERNEL_ROOT_DIR}/bin/salome/salomeContext.py ${KERNEL_ROOT_DIR}/bin/salome/salomeContextUtils.py ${KERNEL_ROOT_DIR}/bin/salome/parseConfigFile.py ) diff --git a/src/salomeContext.py b/src/salomeContext.py index 5777305..00fa1bc 100755 --- a/src/salomeContext.py +++ b/src/salomeContext.py @@ -177,8 +177,8 @@ class SalomeContext: self.getLogger().warning("Environment variable already existing (and not overwritten): %s=%s", name, value) return - #if env: - # self.getLogger().warning("Overwriting environment variable: %s=%s", name, value) + if env: + self.getLogger().warning("Overwriting environment variable: %s=%s", name, value) value = os.path.expandvars(value) # expand environment variables self.getLogger().debug("Set environment variable: %s=%s", name, value) -- 2.39.2