[GRASS-SVN] r59344 - grass/trunk/gui/wxpython/animation

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Mar 25 20:54:20 PDT 2014


Author: annakrat
Date: 2014-03-25 20:54:20 -0700 (Tue, 25 Mar 2014)
New Revision: 59344

Modified:
   grass/trunk/gui/wxpython/animation/frame.py
Log:
wxGUI/animation: always create new temporary file

Modified: grass/trunk/gui/wxpython/animation/frame.py
===================================================================
--- grass/trunk/gui/wxpython/animation/frame.py	2014-03-26 00:16:47 UTC (rev 59343)
+++ grass/trunk/gui/wxpython/animation/frame.py	2014-03-26 03:54:20 UTC (rev 59344)
@@ -43,7 +43,7 @@
 
 
 MAX_COUNT = 4
-TMP_DIR = tempfile.mkdtemp()
+TMP_DIR = None
 
 gcore.set_raise_on_error(True)
 
@@ -62,6 +62,9 @@
         # Make sure the temporal database exists
         tgis.init()
 
+        global TMP_DIR
+        TMP_DIR = tempfile.mkdtemp()
+
         self.animations = [Animation() for i in range(MAX_COUNT)]
         self.windows = []
         self.animationPanel = AnimationsPanel(self, self.windows, initialCount=MAX_COUNT)



More information about the grass-commit mailing list