transition compatibility not needed any more

This commit is contained in:
Martin Diehl 2018-07-02 19:53:26 +02:00
parent f8bac92a1a
commit 2b15468f0f
1 changed files with 1 additions and 9 deletions

10
env/DAMASK.csh vendored
View File

@ -3,15 +3,7 @@
set CALLED=($_) set CALLED=($_)
set DIRNAME=`dirname $CALLED[2]` set DIRNAME=`dirname $CALLED[2]`
set DAMASK_ROOT=`python -c "import os,sys; print(os.path.realpath(os.path.expanduser(sys.argv[1])))" $DIRNAME"/../"`
# transition compatibility (renamed $DAMASK_ROOT/DAMASK_env.csh to $DAMASK_ROOT/env/DAMASK.csh)
set FILENAME=`basename $CALLED[2]`
if ($FILENAME == "DAMASK.csh") then
set DIRNAME=$DIRNAME"/../"
endif
set DAMASK_ROOT=`python -c "import os,sys; print(os.path.realpath(os.path.expanduser(sys.argv[1])))" $DIRNAME`
source $DAMASK_ROOT/CONFIG source $DAMASK_ROOT/CONFIG