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

GRASS GIS trac at osgeo.org
Fri Jun 21 10:45:00 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 wenzeslaus):

 I've committed the small fix for r56867 in r56869 (Python says ''can only
 concatenate list (not "tuple") to list'').

 There is except without OSError, mentioned before, is there any reason for
 this?

 I was about to commit the special case for the `explorer` cmd on MS Win.
 However, there is also a special case for `xdg-open`, I'm not sure why.
 Moreover, I tested also other command and e.g. `firefox` blocks the
 g.manual (it also blocks the cmd line when launched without &). On the
 other hand, in case of g.manual it opens the requested page, so it means
 that it goes behind the `call` function in `find_program`. This confuses
 me, I'would expect that the `wait()` call in `call` function
 implementation should block the interpreter sooner (i.e. in
 `find_program`).

 We probably cannot find safe (help or version) arguments for all possible
 web browsers.

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



More information about the grass-dev mailing list