Skip to content
Snippets Groups Projects
Commit a5871990 authored by Karl-Hermann Wieners's avatar Karl-Hermann Wieners
Browse files

importexp: handle relative run script paths properly

parent da712f5c
No related branches found
No related tags found
No related merge requests found
......@@ -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}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment