Try:
import glob
tifs=glob.glob('D:/*.tif')
subprocess.call([sys.executable,gmerge,'-o','C:/r.tif','-of','GTiff']+tifs)
Luke
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/gdal-dev-feeding-input-files-into-gdal-merge-py-tp5150332p5150377.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.