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

GRASS GIS trac at osgeo.org
Thu Jun 20 10:59:01 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:17 wenzeslaus]:

 > The result is that there is some group of programs which we cannot run
 without consequences, explorer on MS Win is one of them. We can either
 introduce another win-specific or even explorer specific conditions and
 hope that other programs behaves more like grass commands, or we can use
 implementation from Python authors.

 find_program('explorer') would be pointless; it can't fail to exist. Also,
 running explorer explicitly is probably wrong; a more usual approach is to
 just "execute" the document with shell=True, or use "rundll shell32 ...".

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



More information about the grass-dev mailing list