[GRASS-SVN] r61090 - grass/branches/releasebranch_7_0/gui/wxpython/core
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jun 30 18:59:21 PDT 2014
Author: annakrat
Date: 2014-06-30 18:59:21 -0700 (Mon, 30 Jun 2014)
New Revision: 61090
Modified:
grass/branches/releasebranch_7_0/gui/wxpython/core/render.py
Log:
wxGUI/render: attempt to fix not deleting temporary files, #560 (merge from trunk, r60947)
Modified: grass/branches/releasebranch_7_0/gui/wxpython/core/render.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/core/render.py 2014-07-01 01:51:11 UTC (rev 61089)
+++ grass/branches/releasebranch_7_0/gui/wxpython/core/render.py 2014-07-01 01:59:21 UTC (rev 61090)
@@ -77,7 +77,10 @@
else:
tempfile_sfx = ".ppm"
- self.mapfile = tempfile.mkstemp(suffix = tempfile_sfx)[1]
+ mapfile = tempfile.NamedTemporaryFile(suffix=tempfile_sfx, delete=False)
+ # we don't want it open, we just need the name
+ self.mapfile = mapfile.name
+ mapfile.close()
self.maskfile = self.mapfile.rsplit(".",1)[0] + ".pgm"
else:
self.mapfile = self.maskfile = None
More information about the grass-commit
mailing list