[GRASS-SVN] r58883 - grass/trunk/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Feb 4 19:14:34 PST 2014


Author: annakrat
Date: 2014-02-04 19:14:33 -0800 (Tue, 04 Feb 2014)
New Revision: 58883

Modified:
   grass/trunk/gui/wxpython/gui_core/gselect.py
Log:
wxGUI: do not import tgis during gui start (#2188)

Modified: grass/trunk/gui/wxpython/gui_core/gselect.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/gselect.py	2014-02-04 20:11:11 UTC (rev 58882)
+++ grass/trunk/gui/wxpython/gui_core/gselect.py	2014-02-05 03:14:33 UTC (rev 58883)
@@ -56,7 +56,6 @@
 except ImportError, e:
     print >> sys.stderr, _("Unable to import pyGRASS: %s\n"
                            "Some functionality will be not accessible") % e
-import grass.temporal as tgis
 
 from gui_core.widgets  import ManageSettingsWidget
 
@@ -449,6 +448,7 @@
         
         if element in ('stds', 'strds', 'str3ds', 'stvds'):
             if self.tgis_error is False:
+                import grass.temporal as tgis
                 filesdict = tgis.tlist_grouped(elementdict[element], element == 'stds')
             else:
                 filesdict = None
@@ -673,6 +673,7 @@
             if self.type in ('stds', 'strds', 'str3ds', 'stvds'):
                 # Initiate the temporal framework. Catch database error
                 # and set the error flag for the stds listing.
+                import grass.temporal as tgis
                 try:
                     tgis.init(True)
                 except messages.FatalError, e:



More information about the grass-commit mailing list