[GRASS-SVN] r62285 - grass/trunk/gui/wxpython/lmgr

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Oct 17 15:00:07 PDT 2014


Author: annakrat
Date: 2014-10-17 15:00:07 -0700 (Fri, 17 Oct 2014)
New Revision: 62285

Modified:
   grass/trunk/gui/wxpython/lmgr/datacatalog.py
Log:
wxGUI: remove unnecessary gisenv call

Modified: grass/trunk/gui/wxpython/lmgr/datacatalog.py
===================================================================
--- grass/trunk/gui/wxpython/lmgr/datacatalog.py	2014-10-17 21:39:54 UTC (rev 62284)
+++ grass/trunk/gui/wxpython/lmgr/datacatalog.py	2014-10-17 22:00:07 UTC (rev 62285)
@@ -243,9 +243,10 @@
 
     def MakeBackup(self):
         """Make backup for case of change"""
-        self.glocation =  grass.gisenv()['LOCATION_NAME']
-        self.gmapset =  grass.gisenv()['MAPSET']
-    
+        gisenv = grass.gisenv()
+        self.glocation = gisenv['LOCATION_NAME']
+        self.gmapset = gisenv['MAPSET']
+
     def RestoreBackup(self):
         """Restore backup"""
         stringl = 'LOCATION_NAME='+self.glocation



More information about the grass-commit mailing list