[GRASS-dev] [GRASS GIS] #2008: grass.script's find_program() can't find modules
GRASS GIS
trac at osgeo.org
Thu Jun 20 05:41:53 PDT 2013
#2008: grass.script's find_program() can't find modules
-----------------------+----------------------------------------------------
Reporter: hamish | Owner: grass-dev@…
Type: defect | Status: reopened
Priority: critical | Milestone: 6.4.4
Component: Python | Version: svn-releasebranch64
Resolution: | Keywords: find_program()
Platform: All | Cpu: x86-64
-----------------------+----------------------------------------------------
Comment(by annakrat):
Replying to [comment:14 zarch]:
>
> If the meaning of this function is just a python replacement for the
equivalent "which" bash command. The implementation using Popen, it does
not provide any information about where the program is, therefore is
conceptually different from "which", and personally I find much more clean
ask only for the program, instead of asking for the program AND one
option/parameter...
The 'which' implementation of function find_program more suits to the
name. But in this case we probably want to only test if we can run it (and
we don't want to find it).
Is there a way to get rid of the dummy parameters (like 'help') and keep
the interface clean while keeping the previous implementation?
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2008#comment:15>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list