[GRASS-SVN] r61167 - sandbox/krejcmat/src

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jul 7 07:02:43 PDT 2014


Author: martinl
Date: 2014-07-07 07:02:43 -0700 (Mon, 07 Jul 2014)
New Revision: 61167

Modified:
   sandbox/krejcmat/src/g.gui.metadata.py
Log:
g.gui.metadata: fix hardcoded path

Modified: sandbox/krejcmat/src/g.gui.metadata.py
===================================================================
--- sandbox/krejcmat/src/g.gui.metadata.py	2014-07-07 13:54:19 UTC (rev 61166)
+++ sandbox/krejcmat/src/g.gui.metadata.py	2014-07-07 14:02:43 UTC (rev 61167)
@@ -14,11 +14,16 @@
            for details.
 """
 
+import os
+from lxml import etree as et
+
 #from grass.pygrass.gis import Mapset
-from lxml import etree as et
+
+import wx
 from wx.lib.splitter import MultiSplitterWindow
-import wx
+
 import editor
+
 ########################################################################
 class MapTree(wx.Panel):
     def __init__(self, parent):    
@@ -86,7 +91,7 @@
         wx.TreeCtrl.__init__(self, parent=parent,id=wx.ID_ANY, style=wx.TR_HAS_BUTTONS|wx.TR_EDIT_LABELS)
         
         self.parent=parent
-        self.fpath = '/home/matt/Dropbox/gsoc/gsoc2014-krejci/src/series.xml'
+        self.fpath = os.path.join(os.path.dirname(__file__), 'series.xml')
         self.xml = et.parse(self.fpath)
         
         #wx.TreeCtrl(parent=self.parent,
@@ -242,4 +247,4 @@
 if __name__ == "__main__":
     app = wx.App(False)
     frame = MainFrame()
-    app.MainLoop()
\ No newline at end of file
+    app.MainLoop()



More information about the grass-commit mailing list