[GRASS-dev] [GRASS GIS] #2008: grass.script's find_program() can't find modules
GRASS GIS
trac at osgeo.org
Wed Jun 19 04:11:50 PDT 2013
#2008: grass.script's find_program() can't find modules
----------------------+-----------------------------------------------------
Reporter: hamish | Owner: grass-dev@…
Type: defect | Status: closed
Priority: normal | Milestone: 6.4.4
Component: Python | Version: svn-releasebranch64
Resolution: invalid | Keywords: find_program()
Platform: Linux | Cpu: x86-64
----------------------+-----------------------------------------------------
Changes (by hamish):
* status: new => closed
* resolution: => invalid
Comment:
actually it works, what I was missing what that the argument needed to be
in [square] brackets. (why?)
6.4.3svn on linux:
{{{
import grass.script as grass
grass.find_program('r.sun,', ['help'])
True
}}}
I will fix/sync the purely parallel-evolution :) version of the test in
the r.hazard.flood script in grass6 addons; the exercise came about since
I was trying to test python addons scripts in grass 6.4 (works on linux
with g.extension, not on Windows due to .bat wrapper files and .py
extension $0 != $0 fun with g.parser).
Hamish
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2008#comment:1>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list