[GRASS-SVN] r61619 - in grass-addons/grass7/gui/wxpython/wx.metadata: . g.gui.metadata
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Aug 14 05:58:37 PDT 2014
Author: martinl
Date: 2014-08-14 05:58:37 -0700 (Thu, 14 Aug 2014)
New Revision: 61619
Added:
grass-addons/grass7/gui/wxpython/wx.metadata/g.gui.metadata/Makefile
Modified:
grass-addons/grass7/gui/wxpython/wx.metadata/Makefile
grass-addons/grass7/gui/wxpython/wx.metadata/g.gui.metadata/g.gui.metadata.py
Log:
wx.metadata: first steps to add working Makefile for g.gui.metadata (todo: missing interface must be defined)
Modified: grass-addons/grass7/gui/wxpython/wx.metadata/Makefile
===================================================================
--- grass-addons/grass7/gui/wxpython/wx.metadata/Makefile 2014-08-14 12:21:41 UTC (rev 61618)
+++ grass-addons/grass7/gui/wxpython/wx.metadata/Makefile 2014-08-14 12:58:37 UTC (rev 61619)
@@ -3,7 +3,8 @@
SUBDIRS = \
mdlib \
r.info.iso \
- v.info.iso
+ v.info.iso \
+ g.gui.metadata
include $(MODULE_TOPDIR)/include/Make/Dir.make
Added: grass-addons/grass7/gui/wxpython/wx.metadata/g.gui.metadata/Makefile
===================================================================
--- grass-addons/grass7/gui/wxpython/wx.metadata/g.gui.metadata/Makefile (rev 0)
+++ grass-addons/grass7/gui/wxpython/wx.metadata/g.gui.metadata/Makefile 2014-08-14 12:58:37 UTC (rev 61619)
@@ -0,0 +1,21 @@
+MODULE_TOPDIR = ../..
+
+PGM = g.gui.metadata
+
+include $(MODULE_TOPDIR)/include/Make/Script.make
+include $(MODULE_TOPDIR)/include/Make/Python.make
+
+DSTDIR = $(ETC)
+
+MODULES = editor.py
+
+PYFILES := $(patsubst %,$(DSTDIR)/%,$(MODULES))
+PYCFILES := $(patsubst %.py,$(DSTDIR)/%.pyc,$(filter %.py,$(MODULES)))
+
+default: $(PYFILES) $(PYCFILES) script
+
+$(DSTDIR):
+ $(MKDIR) $@
+
+$(DSTDIR)/%: % | $(DSTDIR)
+ $(INSTALL_DATA) $< $@
Modified: grass-addons/grass7/gui/wxpython/wx.metadata/g.gui.metadata/g.gui.metadata.py
===================================================================
--- grass-addons/grass7/gui/wxpython/wx.metadata/g.gui.metadata/g.gui.metadata.py 2014-08-14 12:21:41 UTC (rev 61618)
+++ grass-addons/grass7/gui/wxpython/wx.metadata/g.gui.metadata/g.gui.metadata.py 2014-08-14 12:58:37 UTC (rev 61619)
@@ -21,21 +21,25 @@
@author Matej Krejci <matejkrejci gmail.com> (GSoC 2014)
"""
+import os
+import sys
+import glob
+from lxml import etree
+
+sys.path.insert(1, os.path.join(os.path.dirname(sys.path[0]), 'etc', 'wx.metadata'))
+
import wx
from wx.lib.buttons import ThemedGenBitmapTextButton as BitmapBtnTxt
from wx import SplitterWindow, EVT_BUTTON
from wx.lib.pubsub import setupkwargs, pub
-from editor import MdMainEditor
-import glob
-import os
-import sys
+import grass.script as grass
+import grass.script.setup as gsetup
+
import mdgrass
import mdutil
-from lxml import etree
-import grass.script as grass
-import grass.script.setup as gsetup
+from editor import MdMainEditor
from lmgr import datacatalog
from core.gcmd import RunCommand, GError, GMessage
More information about the grass-commit
mailing list