Commit 5fcdecf7 authored by Rashad Kanavath's avatar Rashad Kanavath

COMP: chdir to script dir and then start otbcli

parent 60741662
......@@ -10,11 +10,13 @@ CURRENT_SCRIPT_DIR=`dirname $0`
if [ -e $CURRENT_SCRIPT_DIR/otbcli ]
then
# Prefer using the launcher inside the script dir
OTB_CLI_LAUNCHER=$CURRENT_SCRIPT_DIR/otbcli
OTB_CLI_LAUNCHER=./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