[GRASS-SVN] r41352 - grass/branches/releasebranch_6_4/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Mar 8 11:05:29 EST 2010


Author: martinl
Date: 2010-03-08 11:05:28 -0500 (Mon, 08 Mar 2010)
New Revision: 41352

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/render.py
Log:
wxGUI: bugfix when georectifier is started from LL location


Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/render.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/render.py	2010-03-08 15:51:07 UTC (rev 41351)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/render.py	2010-03-08 16:05:28 UTC (rev 41352)
@@ -754,9 +754,17 @@
         """
 
         projinfo = {}
-
+        
+        gisrc_orig = os.getenv("GISRC")
+        if self.gisrc:
+            os.environ["GISRC"] = self.gisrc
+        
         p = gcmd.Command(['g.proj', '-p'])
-
+        
+        # back to original gisrc
+        if self.gisrc:
+            os.environ["GISRC"] = gisrc_orig
+        
         if p.returncode == 0:
             for line in p.ReadStdOutput():
                 if ':' in line:



More information about the grass-commit mailing list