X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FfileEnviron.py;h=3fe41c87945290dc5524abfb57bf98f015cc91e8;hb=c76437f0fb9f7f66bfca0eb10674fbdd3d22ba6c;hp=ae3e9a591dc98eb989974b8cdf4fe2d67cdfe183;hpb=8c66793b24cedacaf9150c661401b02649e312b5;p=tools%2Fsat.git diff --git a/src/fileEnviron.py b/src/fileEnviron.py index ae3e9a5..3fe41c8 100644 --- a/src/fileEnviron.py +++ b/src/fileEnviron.py @@ -458,7 +458,6 @@ class LauncherFileEnviron(FileEnviron): 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=" " @@ -730,6 +729,15 @@ tcl_header="""\ 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