[GRASS-SVN] r40148 - grass/trunk/raster/r.colors

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Dec 26 23:48:01 EST 2009


Author: glynn
Date: 2009-12-26 23:48:01 -0500 (Sat, 26 Dec 2009)
New Revision: 40148

Modified:
   grass/trunk/raster/r.colors/thumbnails.py
Log:
Check for g.ppmtopng existence using "g.ppmtopng help" rather than
 just "g.ppmtopng".


Modified: grass/trunk/raster/r.colors/thumbnails.py
===================================================================
--- grass/trunk/raster/r.colors/thumbnails.py	2009-12-27 04:46:40 UTC (rev 40147)
+++ grass/trunk/raster/r.colors/thumbnails.py	2009-12-27 04:48:01 UTC (rev 40148)
@@ -63,7 +63,7 @@
     return dstd
 
 def ppmtopng(dst, src):
-    if grass.find_program("g.ppmtopng"):
+    if grass.find_program("g.ppmtopng", ["help"]):
 	grass.run_command('g.ppmtopng', input = src, output = dst)
     elif grass.find_program("pnmtopng"):
 	fh = open(dst, 'wb')



More information about the grass-commit mailing list