Opened 16 years ago

Closed 12 years ago

#17 closed enhancement (fixed)

generate .bat for bin/*.py

Reported by: maphew Owned by: maphew
Priority: major Component: Package
Version: Keywords: gdal-python
Cc:

Description (last modified by maphew)

this cmd snippet will generate a batch file for all the python scripts in the bin directory. It could be included as part of python and gdal-python packages.

for %%g in (*.py) do echo @python "%%OSGEO4W_ROOT%%\bin\%%g" %%*  > %%~ng.bat

Attachments (2)

gdal.bat (151 bytes ) - added by maphew 16 years ago.
etc/postinstall/gdal.bat
gdal-python.bat (151 bytes ) - added by maphew 16 years ago.
etc/postinstall/gdal-python.bat

Download all attachments as: .zip

Change History (8)

by maphew, 16 years ago

Attachment: gdal.bat added

etc/postinstall/gdal.bat

by maphew, 16 years ago

Attachment: gdal-python.bat added

etc/postinstall/gdal-python.bat

comment:1 by maphew, 16 years ago

the command example is broken (but the attached batch files are ok), it's missing echo, should be:

for %%g in (*.py) do echo @python "%%OSGEO4W_ROOT%%\bin\%%g" %%*  > %%~ng.bat

comment:2 by ckiko13, 16 years ago

Hi Could you tell me how to install gdal-python packages? Thanks

comment:3 by maphew, 16 years ago

ckiko13, please use the mailing list for help and support questions: http://lists.osgeo.org/mailman/listinfo/osgeo4w-dev This tracker is for filing bug reports and enhancement requests.

comment:4 by maphew, 16 years ago

Component: InstallerPackage
Keywords: gdal-python added
Owner: changed from osgeo4w-dev@… to maphew
Status: newassigned

comment:5 by maphew, 13 years ago

Description: modified (diff)

comment:6 by maphew, 12 years ago

Resolution: fixed
Status: assignedclosed

Closed as of python 2.7, which installs and runs bin\make-bat-for-py.bat. (The same script can be run later at any time.)

Note: See TracTickets for help on using tickets.