@echo off
::
:: Autogenerated by OTB installation process
:: DO NOT MODIFY
::

set CURRENT_SCRIPT_DIR=%~dp0

if exist %CURRENT_SCRIPT_DIR%otbApplicationLauncherQt.exe (
  :: Prefer using the launcher inside the script dir
  set OTB_GUI_LAUNCHER=%CURRENT_SCRIPT_DIR%otbApplicationLauncherQt.exe
) else (
  :: Use the one from the PATH
  set OTB_GUI_LAUNCHER=otbApplicationLauncherQt.exe
)

:: works for install tree
if exist %CURRENT_SCRIPT_DIR%../lib/otb/applications (
  set ITK_AUTOLOAD_PATH=%CURRENT_SCRIPT_DIR%../lib/otb/applications;%ITK_AUTOLOAD_PATH%
)

set LC_NUMERIC=C

:: start the application
%OTB_GUI_LAUNCHER% %*
