diff --git a/importexp b/importexp index 46639d160a7bab43b7c5e6efc592eaf5f8d44ade..923b4ae3c78ac9d3f355e16b65631ec9fdafab7d 100755 --- a/importexp +++ b/importexp @@ -58,12 +58,7 @@ do RUN_SCRIPT_BASE=${RUN_SCRIPT_BASE#exp.} RUN_SCRIPT_BASE=${RUN_SCRIPT_BASE%.*} - RUN_BASE_DIR=$(dirname $RUN_SCRIPT) - case "$RUN_BASE_DIR" in - /*) ;; - .) RUN_BASE_DIR=$PWD ;; - ./*) RUN_BASE_DIR=$PWD${RUN_BASE_DIR#.} ;; - esac + RUN_BASE_DIR=$(realpath -L $(dirname $RUN_SCRIPT)) RUN_BASE_DIR=${RUN_BASE_DIR%/$CUSTOM_SUBDIR} MODEL_BASE_DIR=${BUILD_DIR:-$RUN_BASE_DIR}