From: Jeremy ROCHER Date: Thu, 9 Jun 2016 14:13:51 +0000 (+0200) Subject: other update with the warning X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fa54dbb5304a3799164b11cafd67af2a73d21b7b;p=tools%2FSALOME.git other update with the warning --- 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)