From 212cbc55b5a48931f8513b0334e27d1913ea1a48 Mon Sep 17 00:00:00 2001 From: crouzet Date: Fri, 18 Jan 2019 10:22:09 +0100 Subject: [PATCH] sat #8588 : reset LD_LIBRARY_PATH and PYTHONPATH --- src/environment.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.30.2