check_path(pinfo.environ.env_script),
2)
+ # display run-time environment
zz = src.environment.SalomeEnviron(config,
src.fileEnviron.ScreenEnviron(logger),
False)
else:
return ""
+ def get_value(self, key):
+ """\
+ Get the value of the environment variable "key"
+ This method is added for API compatibility with FileEnviron class
+
+ :param key str: the environment variable
+ """
+ return self.get(key)
+
def command_value(self, key, command):
"""\
Get the value given by the system command "command"
"""
return self.environ.get(key)
+ def get_value(self, key):
+ """\
+ Get the real value of the environment variable "key"
+ This method is added for API compatibility with FileEnviron class
+
+ :param key str: the environment variable
+ """
+ if key in self.environ:
+ return self.environ[key]
+ else:
+ return ""
+
def set(self, key, value):
"""\
Set the environment variable "key" to value "value"
product_info.install_dir,
product_info.version)
else:
- # at least this one is mandatoryi,
+ # at least this one is mandatory,
# if set_env_build and set_env_build are not defined
pyproduct.set_env(self,
product_info.install_dir,
self.environ[key] = value
def get_value(self, key):
- """Get the real value of the environment variable "key"
+ """Get the real value of the environment variable "key", not ${key}
It can help env scripts
:param key str: the environment variable
"""