[GRASS-SVN] r35150 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jan 1 17:45:27 EST 2009


Author: cmbarton
Date: 2009-01-01 17:45:27 -0500 (Thu, 01 Jan 2009)
New Revision: 35150

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py
Log:
replace grassenv with grass.gisenv()

Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py	2009-01-01 21:05:45 UTC (rev 35149)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py	2009-01-01 22:45:27 UTC (rev 35150)
@@ -64,6 +64,7 @@
 import globalvar
 import utils
 import gdialogs
+import grass
 from vdigit import VDigitCategoryDialog as VDigitCategoryDialog
 from vdigit import VDigitZBulkDialog    as VDigitZBulkDialog
 from vdigit import VDigitDuplicatesDialog as VDigitDuplicatesDialog
@@ -4105,11 +4106,11 @@
     gm_map = MapApp(0)
     # set title
     gm_map.mapFrm.SetTitle ("GRASS GIS - Map Display: " + title + " - Location: " + \
-                                grassenv.GetGRASSVariable("LOCATION_NAME"))
+                                grass.gisenv()['LOCATION_NAME'])
     gm_map.MainLoop()
 
-    if grassenv.env.has_key("MONITOR"):
-        os.system("d.mon sel=%s" % grassenv.GetGRASSVariable("MONITOR"))
+    if grass.gisenv().has_key("MONITOR"):
+        os.system("d.mon sel=%s" % grass.gisenv()["MONITOR"])
 
     os.remove(cmdfilename)
     os.system("""g.gisenv set="GRASS_PYCMDFILE" """)



More information about the grass-commit mailing list