|
@@ -83,7 +83,7 @@ def flip_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, quiet = True)
|
|
|
elif grass.find_program("pnmtopng"):
|
|
|
fh = open(dst, 'wb')
|