#!/bin/bash

#
# Autogenerated by OTB installation process
# DO NOT MODIFY
#

CURRENT_SCRIPT_DIR=`dirname $0`

if [ -e $CURRENT_SCRIPT_DIR/otbApplicationLauncherQt ]
then
  # Prefer using the launcher inside the script dir
  OTB_GUI_LAUNCHER=$CURRENT_SCRIPT_DIR/otbApplicationLauncherQt
else
  # Use the one from the PATH
  OTB_GUI_LAUNCHER=otbApplicationLauncherQt
fi

# use the default install tree path for applications
if [ -d $CURRENT_SCRIPT_DIR/../lib64/otb/applications ]
then
  ITK_AUTOLOAD_PATH=$CURRENT_SCRIPT_DIR/../lib64/otb/applications:$ITK_AUTOLOAD_PATH
fi

# export it to make it available to otbApplicationLauncherCommandLine environment
export ITK_AUTOLOAD_PATH

# avoid numerical issues caused by locale
export LC_NUMERIC=C

# start the application
$OTB_GUI_LAUNCHER "$@"
