def value_filter(self, value):
res=value
- # on windows platform, replace / by \
- if src.architecture.is_windows():
- res = value.replace("/","\\")
return res
self._do_init(output, environ)
self.python_version=self.environ.get("sat_python_version")
self.bin_kernel_root_dir=self.environ.get("sat_bin_kernel_install_dir")
- self.app_root_dir=self.environ.get("sat_app_root_dir")
# four whitespaces for first indentation in a python script
self.indent=" "
bash_header="""\
#!/bin/bash
+if [ "$BASH" = "" ]
+then
+ # check that the user is not using another shell
+ echo
+ echo "Warning! SALOME environment not initialized"
+ echo "You must run this script in a bash shell."
+ echo "As you are using another shell. Please first run: bash"
+ echo
+fi
##########################################################################
#
# This line is used only in case of a sat package