]> SALOME platform Git repositories - tools/sat.git/commitdiff
Salome HOME
Get an absolute path for env files in packages.
authorSPN Salome - CEA <support-salome@cea.fr>
Wed, 28 Jun 2017 14:44:13 +0000 (16:44 +0200)
committerSPN Salome - CEA <support-salome@cea.fr>
Wed, 28 Jun 2017 14:44:13 +0000 (16:44 +0200)
see spns #8739

src/fileEnviron.py

index ab43f3cbc42af9019b9add3f48af26b683d3bad5..4d4cbc019d2b6dad9e2177fc88f8b4e136a869c7 100644 (file)
@@ -67,7 +67,7 @@ export $1=$out_var
 }
 
 # The 3 following variables are used only in case of a sat package
-export out_dir_Path=`dirname "${BASH_SOURCE[0]}"`
+export out_dir_Path=$(cd $(dirname ${BASH_SOURCE[0]});pwd))
 export PRODUCT_OUT_DIR=${out_dir_Path}
 export PRODUCT_ROOT_DIR=${PRODUCT_OUT_DIR}