Ticket #2783 (closed enhancement: fixed)
Python utililities should support command-line wildcards
|Reported by:||mwtoews||Owned by:||hobu|
|Severity:||minor||Keywords:||python, glob, gdal_merge, gdalident|
At present, a command that uses wildcards does not work as expected, for example with gdal_merge.py:
> gdal_merge.py -o test.tif 094a* ERROR 4: `094a*' does not exist in the file system, and is not recognised as a supported dataset name. Traceback (most recent call last): File "C:\PROGRA~1\FWTOOL~1.1\bin\gdal_merge.py", line 358, in ? ulx = file_infos.ulx IndexError: list index out of range
The present workaround is to use batch files and additional parameters (e.g., http://n2.nabble.com/gdal_merge-multiple-files-td2032804.html).
There are two solutions that should be used for all Python command line utilities: