Hi, OSGeo4W creates .bat file for each Python script. As an example gdal_calc.bat:
@echo off call "%OSGEO4W_ROOT%\bin\o4w_env.bat" python "%OSGEO4W_ROOT%\bin\gdal_calc.py" %* o4w_env.bat launches a bunch of other .bat files. Have a look and be astonished! One of those sets Python: SET PYTHONHOME=%OSGEO4W_ROOT%\apps\Python27 PATH %OSGEO4W_ROOT%\apps\Python27\Scripts;%PATH% -Jukka Rahkonen- Idan Miara wrote > Richard - I'm not sure which batch files you were referring to, which gdal > distribution created gdal_calc.bat files for you? -- Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html _______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev