[GRASS-SVN] r61637 - grass-addons/grass7/gui/wxpython/wx.metadata/mdlib

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Aug 14 11:37:37 PDT 2014


Author: krejcmat
Date: 2014-08-14 11:37:36 -0700 (Thu, 14 Aug 2014)
New Revision: 61637

Modified:
   grass-addons/grass7/gui/wxpython/wx.metadata/mdlib/mdgrass.py
Log:
path fix

Modified: grass-addons/grass7/gui/wxpython/wx.metadata/mdlib/mdgrass.py
===================================================================
--- grass-addons/grass7/gui/wxpython/wx.metadata/mdlib/mdgrass.py	2014-08-14 17:21:11 UTC (rev 61636)
+++ grass-addons/grass7/gui/wxpython/wx.metadata/mdlib/mdgrass.py	2014-08-14 18:37:36 UTC (rev 61637)
@@ -168,7 +168,7 @@
         n = '$NULL'
         # jinja templates
         if template is None:
-            parentDir=os.path.abspath(os.path.join(os.getcwd(), os.path.pardir))
+            parentDir=os.path.abspath(os.path.join(self.dirpath, os.path.pardir))
             self.template = os.path.join(parentDir,'templates', 'basicTemplate.xml')
         else:
             self.template = template
@@ -272,7 +272,7 @@
         self.createGrassBasicISO()
 
         if template is None:
-            parentDir=os.path.abspath(os.path.join(os.getcwd(), os.path.pardir))
+            parentDir=os.path.abspath(os.path.join(self.dirpath, os.path.pardir))
             self.template = os.path.join(parentDir,'templates', 'inspireTemplate.xml')
         else:
             self.template = template



More information about the grass-commit mailing list