otbcli.bat.in 661 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
@echo off
::
:: Autogenerated by OTB installation process
:: DO NOT MODIFY
::

set CURRENT_SCRIPT_DIR=%~dp0

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

17
setlocal
18 19
:: works for install tree
if exist %CURRENT_SCRIPT_DIR%../@OTB_INSTALL_APP_DIR@ (
20
  set OTB_APPLICATION_PATH=%CURRENT_SCRIPT_DIR%../@OTB_INSTALL_APP_DIR@;%OTB_APPLICATION_PATH%
21 22 23 24
)

:: start the application
%OTB_CLI_LAUNCHER% %*
25
endlocal