git-svn-id: https://svn.osgeo.org/grass/grass/trunk@56868 15284696-431f-4ddb-bdfa-cd5b030d7da7
@@ -1471,7 +1471,7 @@ def debug_level():
if _debug_level is not None:
return _debug_level
_debug_level = 0
- if find_program('g.gisenv'):
+ if find_program('g.gisenv', '--help'):
_debug_level = int(gisenv().get('DEBUG', 0))
@@ -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')