[GRASS-SVN] r67534 - grass-addons/grass7/gui/wxpython/wx.mwprecip

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jan 10 02:30:46 PST 2016


Author: martinl
Date: 2016-01-10 02:30:46 -0800 (Sun, 10 Jan 2016)
New Revision: 67534

Modified:
   grass-addons/grass7/gui/wxpython/wx.mwprecip/g.gui.mwprecip.py
Log:
g.gui.mwprecip: add gui modules to sys.path by calling set_gui_path() - another attempt

Modified: grass-addons/grass7/gui/wxpython/wx.mwprecip/g.gui.mwprecip.py
===================================================================
--- grass-addons/grass7/gui/wxpython/wx.mwprecip/g.gui.mwprecip.py	2016-01-10 10:26:29 UTC (rev 67533)
+++ grass-addons/grass7/gui/wxpython/wx.mwprecip/g.gui.mwprecip.py	2016-01-10 10:30:46 UTC (rev 67534)
@@ -2,24 +2,24 @@
 VERSION = 1.2
 import sys
 import os
+import tempfile
+import time
 
+import grass.script as grass
+
 # TODO: replace by pygrass.utils.set_path()
 sys.path.insert(1, os.path.join(os.path.dirname(sys.path[0]), 'etc', 'g.gui.mwprecip'))
-import grass.script as grass
-from mw_util        import *
-from mw3            import *
-import tempfile
-import time
 
 from grass.script.setup import set_gui_path
 set_gui_path()
 
+from mw_util        import *
+from mw3            import *
 from core.gcmd      import GMessage, GError
 from gui_core       import gselect
 from core.gthread   import gThread
 from gui_core.widgets import ColorTablesComboBox,PictureComboBox
 from core           import globalvar
-
 from core.utils     import  GetColorTables
 
 class DBconn(wx.ScrolledWindow):



More information about the grass-commit mailing list