[GRASS-dev] [GRASS GIS] #2008: grass.script's find_program() can't find modules

GRASS GIS trac at osgeo.org
Fri Jun 21 09:17:14 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:2 glynn]:

 > It would be trivial to change the function, i.e.
 {{{
 -def find_program(pgm, args = []):
 +def find_program(pgm, *args):
 }}}

 Done in r56867.

 Also, it now ignores the exit code, so it shouldn't be necessary to pass
 additional arguments unless they're necessary to prevent the program from
 e.g. firing up a GUI.

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/2008#comment:23>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list