[GRASS-dev] [GRASS GIS] #2008: grass.script's find_program() can't find modules
GRASS GIS
trac at osgeo.org
Thu Jun 20 10:53:34 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 glynn):
Replying to [comment:15 annakrat]:
> 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).
Indeed.
> Is there a way to get rid of the dummy parameters (like 'help') and keep
the interface clean while keeping the previous implementation?
Some of the programs which are tested for need a parameter like "help" to
make them return immediately rather than e.g. starting up a GUI. But if we
ignore the exit code, we can probably remove the parameter from many of
them (without e.g. a --help switch, many programs will complain about
missing parameters and return a non-zero exit code).
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2008#comment:19>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list