[GRASS-dev] Re: [GRASS GIS] #547: Raster query in wxGUI
GRASS GIS
trac at osgeo.org
Thu Apr 9 09:57:54 EDT 2009
#547: Raster query in wxGUI
---------------------+------------------------------------------------------
Reporter: hcho | Owner: grass-dev at lists.osgeo.org
Type: defect | Status: new
Priority: major | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords: raster, query
Platform: Linux | Cpu: x86-32
---------------------+------------------------------------------------------
Comment (by glynn):
Replying to [comment:4 hcho]:
> os.environ!["GRASS_REGION"] is passed to r.what correctly only for the
*first* query. After that, r.what cannot see any changes to this variable.
Now, I'm puzzled...
Please don't use os.environ for per-command environment settings.
subprocess.Popen() has an "env" parameter; use it!
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/547#comment:5>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list