Opened 14 years ago

Closed 9 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 14 years ago.
etc/postinstall/gdal.bat
gdal-python.bat (151 bytes) - added by maphew 14 years ago.
etc/postinstall/gdal-python.bat

Download all attachments as: .zip

Change History (8)

Changed 14 years ago by maphew

Attachment: gdal.bat added

etc/postinstall/gdal.bat

Changed 14 years ago by maphew

Attachment: gdal-python.bat added

etc/postinstall/gdal-python.bat

comment:1 Changed 14 years ago by maphew

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 Changed 13 years ago by ckiko13

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

comment:3 Changed 13 years ago by maphew

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 Changed 13 years ago by maphew

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

comment:5 Changed 10 years ago by maphew

Description: modified (diff)

comment:6 Changed 9 years ago by maphew

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.