transition compatibility not needed any more
This commit is contained in:
parent
f8bac92a1a
commit
2b15468f0f
|
@ -3,15 +3,7 @@
|
|||
|
||||
set CALLED=($_)
|
||||
set DIRNAME=`dirname $CALLED[2]`
|
||||
|
||||
# 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`
|
||||
|
||||
set DAMASK_ROOT=`python -c "import os,sys; print(os.path.realpath(os.path.expanduser(sys.argv[1])))" $DIRNAME"/../"`
|
||||
|
||||
source $DAMASK_ROOT/CONFIG
|
||||
|
||||
|
|
Loading…
Reference in New Issue