[GRASS-SVN] r67556 - grass-addons/grass7/gui/wxpython/wx.mwprecip
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jan 11 07:12:42 PST 2016
Author: krejcmat
Date: 2016-01-11 07:12:42 -0800 (Mon, 11 Jan 2016)
New Revision: 67556
Modified:
grass-addons/grass7/gui/wxpython/wx.mwprecip/g.gui.mwprecip.py
grass-addons/grass7/gui/wxpython/wx.mwprecip/mw3.py
Log:
addons wx.mwprecip: change folder for storing data-fix
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 15:03:37 UTC (rev 67555)
+++ grass-addons/grass7/gui/wxpython/wx.mwprecip/g.gui.mwprecip.py 2016-01-11 15:12:42 UTC (rev 67556)
@@ -558,6 +558,7 @@
self.logger=None
context=StaticContext()
self.workPath = context.getTmpPath()
+ self.initWorkingFoldrs()
self.initLogger()
self.initWorkingFoldrs()
self.settings = {}
@@ -736,14 +737,10 @@
self.findProject()
def initWorkingFoldrs(self):
-
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)
def findProject(self):
try:
@@ -806,7 +803,6 @@
pass
def onSetWorkPath(self,evt):
- #f = tempfile.TemporaryFile()
dlg = wx.DirDialog(self,
message="Select working directory",
defaultPath=self.workPath,
Modified: grass-addons/grass7/gui/wxpython/wx.mwprecip/mw3.py
===================================================================
--- grass-addons/grass7/gui/wxpython/wx.mwprecip/mw3.py 2016-01-11 15:03:37 UTC (rev 67555)
+++ grass-addons/grass7/gui/wxpython/wx.mwprecip/mw3.py 2016-01-11 15:12:42 UTC (rev 67556)
@@ -1384,8 +1384,7 @@
self.linkVecMapName = linkVecMapName
self.linkPointsVecName = linkPointsVecName
- self.pathworkSchemaDir = os.path.join(workPath, "tmp_%s" % self.schema)
- #self.pathworkSchemaDir = os.path.join(tempfile.gettempdir(), "tmp_%s" % self.schema)
+ self.pathworkSchemaDir = os.path.join(workPath,'profiles', "tmp_%s" % self.schema)
self.pyConnection()
self.grassConnectionRemote()
More information about the grass-commit
mailing list