浏览代码

Check for g.ppmtopng existence using "g.ppmtopng help" rather than
just "g.ppmtopng".


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@40148 15284696-431f-4ddb-bdfa-cd5b030d7da7

Glynn Clements 15 年之前
父节点
当前提交
d2e26b3b85
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      raster/r.colors/thumbnails.py

+ 1 - 1
raster/r.colors/thumbnails.py

@@ -63,7 +63,7 @@ def rotate_ppm(srcd):
     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')