[GRASS-SVN] r67554 - grass-addons/grass7/gui/wxpython/wx.mwprecip

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jan 11 06:58:26 PST 2016


Author: krejcmat
Date: 2016-01-11 06:58:26 -0800 (Mon, 11 Jan 2016)
New Revision: 67554

Modified:
   grass-addons/grass7/gui/wxpython/wx.mwprecip/g.gui.mwprecip.py
   grass-addons/grass7/gui/wxpython/wx.mwprecip/mw_util.py
Log:
addons wx.mwprecip: change folder for storing data

Modified: grass-addons/grass7/gui/wxpython/wx.mwprecip/g.gui.mwprecip.py
===================================================================
--- grass-addons/grass7/gui/wxpython/wx.mwprecip/g.gui.mwprecip.py	2016-01-11 14:51:38 UTC (rev 67553)
+++ grass-addons/grass7/gui/wxpython/wx.mwprecip/g.gui.mwprecip.py	2016-01-11 14:58:26 UTC (rev 67554)
@@ -731,7 +731,7 @@
             self.settings['workSchema'] = self.schema.GetValue()
         #print self.settings
         if toFile:
-            tmpPath = os.path.join(self.workPath, "save", self.settings['workSchema'])
+            tmpPath = os.path.join(self.workPath, 'save', self.settings['workSchema'])
             saveDict(tmpPath, self.settings)
             self.findProject()
 
@@ -740,7 +740,7 @@
         savePath = os.path.join(self.workPath, 'save')
         if not os.path.exists(savePath):
             os.makedirs(savePath)
-            
+
         tmpPath = os.path.join(self.workPath, 'temp')
         if not os.path.exists(tmpPath):
             os.makedirs(tmpPath)

Modified: grass-addons/grass7/gui/wxpython/wx.mwprecip/mw_util.py
===================================================================
--- grass-addons/grass7/gui/wxpython/wx.mwprecip/mw_util.py	2016-01-11 14:51:38 UTC (rev 67553)
+++ grass-addons/grass7/gui/wxpython/wx.mwprecip/mw_util.py	2016-01-11 14:58:26 UTC (rev 67554)
@@ -22,8 +22,9 @@
     def __init__(self):
         gisenvDict = grass.gisenv()
         pathToMapset = os.path.join(gisenvDict['GISDBASE'], gisenvDict['LOCATION_NAME'], gisenvDict['MAPSET'])
-        self.tmp_mapset_path = os.path.join(pathToMapset, "temp")
+        self.tmp_mapset_path = os.path.join(pathToMapset, "mwprecip_data")
 
+
     def getTmpPath(self):
         return self.tmp_mapset_path
 



More information about the grass-commit mailing list