[GRASS-SVN] r30746 - grass/trunk/gui/wxpython

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Mar 26 16:00:21 EDT 2008


Author: martinl
Date: 2008-03-26 16:00:21 -0400 (Wed, 26 Mar 2008)
New Revision: 30746

Modified:
   grass/trunk/gui/wxpython/gis_set.py
Log:
wxGUI: welcome screen fixed - install gettext package before importing utils module (related to r30745, utils.py)

Modified: grass/trunk/gui/wxpython/gis_set.py
===================================================================
--- grass/trunk/gui/wxpython/gis_set.py	2008-03-26 18:35:03 UTC (rev 30745)
+++ grass/trunk/gui/wxpython/gis_set.py	2008-03-26 20:00:21 UTC (rev 30746)
@@ -30,7 +30,6 @@
 
 from gui_modules import globalvar
 globalvar.CheckForWx()
-from gui_modules import utils
 
 import wx
 import wx.html
@@ -42,8 +41,6 @@
     """GRASS start-up screen"""
     def __init__(self, parent=None, id=wx.ID_ANY, style=wx.DEFAULT_FRAME_STYLE):
 
-        gettext.install('grasswxpy', os.path.join(os.getenv("GISBASE"), 'locale'), unicode=True)
-
         #
         # GRASS variables
         #
@@ -781,9 +778,10 @@
         print >> sys.stderr, "Failed to start GUI, GRASS GIS is not running."
     else:
         import gettext
-        gettext.install("GRASSStartUp") # replace with the appropriate catalog name
+        gettext.install('grasswxpy', os.path.join(os.getenv("GISBASE"), 'locale'), unicode=True)
 
         import gui_modules.gcmd as gcmd
+        import gui_modules.utils as utils
 
         GRASSStartUp = StartUp(0)
         GRASSStartUp.MainLoop()



More information about the grass-commit mailing list