Commit f81ce7d7 authored by Guillaume Pasero's avatar Guillaume Pasero

BACKOUT 18149: changing directory makes relative paths wrong

parent 4afaa793
......@@ -10,13 +10,11 @@ CURRENT_SCRIPT_DIR=`dirname $0`
if [ -e $CURRENT_SCRIPT_DIR/otbcli ]
then
# Prefer using the launcher inside the script dir
OTB_CLI_LAUNCHER=./otbcli
OTB_CLI_LAUNCHER=$CURRENT_SCRIPT_DIR/otbcli
else
# Use the one from the PATH
OTB_CLI_LAUNCHER=otbcli
fi
cd $CURRENT_SCRIPT_DIR
# start the application
$OTB_CLI_LAUNCHER @APPLICATION_NAME@ "$@"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment