From 35fe23d160f4dc283e37c967ab07537afc464895 Mon Sep 17 00:00:00 2001 From: "S. Pomarede" Date: Fri, 27 May 2016 16:37:33 +0200 Subject: [PATCH] No warning with salomeContext --- CMakeLists.txt | 3 ++- src/salomeContext.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 376d538..d290cc1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -109,7 +109,8 @@ ADD_SUBDIRECTORY( doc ) # Additional files # ================ SET(_salome_context_API_SCRIPTS - ${KERNEL_ROOT_DIR}/bin/salome/salomeContext.py + #${KERNEL_ROOT_DIR}/bin/salome/salomeContext.py # No warning salomeContext + ./src/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 00fa1bc..5777305 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