[GRASS-dev] [GRASS GIS] #2189: PyGRASS Module does not work on Windows
GRASS GIS
trac at osgeo.org
Thu Feb 6 10:11:17 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 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?
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2189#comment:3>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list