From: crouzet Date: Fri, 18 Jan 2019 09:22:09 +0000 (+0100) Subject: sat #8588 : reset LD_LIBRARY_PATH and PYTHONPATH X-Git-Tag: 5.3.0~22 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=212cbc55b5a48931f8513b0334e27d1913ea1a48;p=tools%2Fsat.git sat #8588 : reset LD_LIBRARY_PATH and PYTHONPATH --- diff --git a/src/environment.py b/src/environment.py index 2832519..79526ff 100644 --- a/src/environment.py +++ b/src/environment.py @@ -398,6 +398,14 @@ class SalomeEnviron: self.cfg.APPLICATION.environ.PRODUCT_ROOT_DIR = src.pyconf.Reference(self.cfg, src.pyconf.DOLLAR, "workdir") DBG.write("set_application_env: add APPLICATION.environ.PRODUCT_ROOT_DIR", self.cfg.APPLICATION.environ) + # these sensitive variables are reset to avoid bad environment interactions + self.add_line(1) + self.add_comment("reset these sensitive variables to avoid bad environment interactions") + self.add_comment("comment these to lines if you wish a different behaviour") + self.set("LD_LIBRARY_PATH", "") + self.set("PYTHONPATH", "") + self.add_line(1) + # Set the variables defined in the "environ" section if 'environ' in self.cfg.APPLICATION: # we write PRODUCT environment it in order to conform to