[GRASS-SVN] r67312 - grass-addons/grass7/gui/wxpython/wx.metadata/g.gui.cswbrowser

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Dec 21 17:27:47 PST 2015


Author: martinl
Date: 2015-12-21 17:27:47 -0800 (Mon, 21 Dec 2015)
New Revision: 67312

Modified:
   grass-addons/grass7/gui/wxpython/wx.metadata/g.gui.cswbrowser/g.gui.cswbrowser.py
Log:
wx.metadata: fix r67311

Modified: grass-addons/grass7/gui/wxpython/wx.metadata/g.gui.cswbrowser/g.gui.cswbrowser.py
===================================================================
--- grass-addons/grass7/gui/wxpython/wx.metadata/g.gui.cswbrowser/g.gui.cswbrowser.py	2015-12-22 01:26:14 UTC (rev 67311)
+++ grass-addons/grass7/gui/wxpython/wx.metadata/g.gui.cswbrowser/g.gui.cswbrowser.py	2015-12-22 01:27:47 UTC (rev 67312)
@@ -11,6 +11,16 @@
 """
 import grass.script as grass
 
+from grass.pygrass.utils import set_path
+set_path(modulename='wx.metadata', dirname='mdlib')
+
+import wx
+
+from grass.script.setup import set_gui_path
+set_gui_path()
+
+from cswlib import CSWBrowserPanel, CSWConnectionPanel
+
 class CswBrowserMainDialog(wx.Frame):
     def __init__(self,giface=None):
         wx.Frame.__init__(self, None, title="Metadata browser", size=(1024, 760))
@@ -30,16 +40,6 @@
         self.SetSizer(self.mainsizer)
 
 def main(giface=None):
-    from grass.pygrass.utils import set_path
-    set_path(modulename='wx.metadata', dirname='mdlib')
-
-    import wx
-
-    from grass.script.setup import set_gui_path
-    set_gui_path()
-    
-    from cswlib import CSWBrowserPanel, CSWConnectionPanel
-    
     app = wx.App()
     a = CswBrowserMainDialog(giface)
     a.Show()



More information about the grass-commit mailing list