grass.bat.tmpl 554 B

12345678910111213141516171819202122232425
  1. @echo off
  2. rem #########################################################################
  3. rem #
  4. rem # GRASS initialization bat script (OSGeo4W)
  5. rem #
  6. rem #########################################################################
  7. SET OSGEO4W_ROOT=@osgeo4w@
  8. rem
  9. rem Set environmental variables
  10. rem
  11. call %OSGEO4W_ROOT%\bin\o4w_env.bat
  12. call %OSGEO4W_ROOT%\apps\grass\grass-@VERSION@\etc\env.bat
  13. rem
  14. rem Launch GRASS GIS
  15. rem
  16. "%GRASS_PYTHON%" "%GISBASE%\etc\grass@POSTFIX@.py" %*
  17. rem
  18. rem Pause on error
  19. rem
  20. if %ERRORLEVEL% GEQ 1 pause