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

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Aug 28 04:56:38 PDT 2013


Author: annakrat
Date: 2013-08-28 04:56:38 -0700 (Wed, 28 Aug 2013)
New Revision: 57525

Modified:
   grass/trunk/gui/wxpython/gui_core/gselect.py
Log:
wxGUI: import tgis only when needed

Modified: grass/trunk/gui/wxpython/gui_core/gselect.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/gselect.py	2013-08-28 11:48:44 UTC (rev 57524)
+++ grass/trunk/gui/wxpython/gui_core/gselect.py	2013-08-28 11:56:38 UTC (rev 57525)
@@ -50,7 +50,6 @@
 from core import globalvar
 
 import grass.script as grass
-import grass.temporal as tgis
 from   grass.script import task as gtask
 
 from gui_core.widgets  import ManageSettingsWidget
@@ -433,6 +432,7 @@
             return
         
         if element in ('stds', 'strds', 'str3ds', 'stvds'):
+            import grass.temporal as tgis
             filesdict = tgis.tlist_grouped(elementdict[element], element == 'stds')
         else:
             if globalvar.have_mlist:
@@ -653,6 +653,7 @@
         if 'type' in kargs:
             self.type = kargs['type']
             if self.type in ('stds', 'strds', 'str3ds', 'stvds'):
+                import grass.temporal as tgis
                 tgis.init()
         if 'mapsets' in kargs:
             self.mapsets = kargs['mapsets']



More information about the grass-commit mailing list