[GRASS-SVN] r64001 - grass-addons/grass7/gui/wxpython/wx.metadata/mdlib
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Jan 8 09:40:07 PST 2015
Author: martinl
Date: 2015-01-08 09:40:07 -0800 (Thu, 08 Jan 2015)
New Revision: 64001
Modified:
grass-addons/grass7/gui/wxpython/wx.metadata/mdlib/mdgrass.py
Log:
wx.metadata: fix dirpath
Modified: grass-addons/grass7/gui/wxpython/wx.metadata/mdlib/mdgrass.py
===================================================================
--- grass-addons/grass7/gui/wxpython/wx.metadata/mdlib/mdgrass.py 2015-01-08 17:35:01 UTC (rev 64000)
+++ grass-addons/grass7/gui/wxpython/wx.metadata/mdlib/mdgrass.py 2015-01-08 17:40:07 UTC (rev 64001)
@@ -58,7 +58,7 @@
self.gisenv_grass = grass.gisenv() # dict with gisenv information
# suffix of output xml file (variables)
self.schema_type = '_basic.xml'
- self.dirpath = os.path.join(os.getenv('GRASS_ADDON_BASE'), 'etc', 'wx.metadata')
+ self.dirpath = os.path.join(os.getenv('GRASS_ADDON_BASE'), 'etc')
# metadata object from OWSLIB ( for define md values)
self.md = MD_Metadata(md=None)
self.template = None # path to file with xml templates
@@ -164,7 +164,7 @@
n = '$NULL'
# jinja templates
if template is None:
- self.template = os.path.join('templates', 'basicTemplate.xml')
+ self.template = os.path.join(self.dirpath, 'templates', 'basicTemplate.xml')
else:
self.template = template
More information about the grass-commit
mailing list