[GRASS-dev] [GRASS GIS] #2189: PyGRASS Module does not work on Windows

GRASS GIS trac at osgeo.org
Thu Feb 6 10:25:48 PST 2014


#2189: PyGRASS Module does not work on Windows
-------------------------+--------------------------------------------------
 Reporter:  annakrat     |       Owner:  grass-dev@…              
     Type:  defect       |      Status:  new                      
 Priority:  normal       |   Milestone:  7.0.0                    
Component:  Python       |     Version:  svn-trunk                
 Keywords:  pygrass      |    Platform:  MSWindows 8              
      Cpu:  Unspecified  |  
-------------------------+--------------------------------------------------

Comment(by annakrat):

 Replying to [comment:3 zarch]:
 > Replying to [comment:2 annakrat]:
 > > > Should not find the command. Someone has an idea why this is
 happening?
 > > > Both are using the same python class, and both avoid to set any
 special
 > > > environmental variable...
 > >
 > > run_command works. The difference is passing shell=True in Popen
 >
 >
 > Thanks, I didn't notice that we were using a modify version of Popen!
 >
 >
 >
 > > I added it in r58902. I haven't checked if there are other places
 > > in pygrass where it is needed.
 >
 >
 > May be I should just use the grass.script.core.Popen class instead. I
 would like to reduce duplicated code, especially these tricky parts that
 are platform dependent, do you mind If I revert the commit r58902, and
 apply the attached changes?

 Sure, that's probably a good idea.

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/2189#comment:4>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list