[GRASS-dev] [GRASS GIS] #2008: grass.script's find_program() can't find modules
GRASS GIS
trac at osgeo.org
Thu Jun 20 11:10:42 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:16 zarch]:
> > 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).
>
> If you want to test if you can run the command or not, why not simply:
{{{
try:
ret = self._runCommand(RunCommand, prog='g.proj',
}}}
What is self._runCommand? Or what is "self" for that matter?
find_program() is a function, not a method. And it isn't part of the
wxGUI, so it can't use any functions from it.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2008#comment:21>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list