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

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Apr 2 08:09:52 PDT 2014


Author: annakrat
Date: 2014-04-02 08:09:52 -0700 (Wed, 02 Apr 2014)
New Revision: 59560

Modified:
   grass/trunk/gui/wxpython/animation/frame.py
Log:
wxGUI/animation: change tmp directory where pictures are generated

Modified: grass/trunk/gui/wxpython/animation/frame.py
===================================================================
--- grass/trunk/gui/wxpython/animation/frame.py	2014-04-02 14:19:50 UTC (rev 59559)
+++ grass/trunk/gui/wxpython/animation/frame.py	2014-04-02 15:09:52 UTC (rev 59560)
@@ -62,17 +62,15 @@
         # Make sure the temporal database exists
         tgis.init()
 
+        # create temporal directory and ensure it's deleted after programs ends (stored in MAPSET/.tmp/)
         global TMP_DIR
-        TMP_DIR = tempfile.mkdtemp()
+        TMP_DIR = gcore.tempdir()
 
         self.animations = [Animation() for i in range(MAX_COUNT)]
         self.windows = []
         self.animationPanel = AnimationsPanel(self, self.windows, initialCount=MAX_COUNT)
         bitmapPool = BitmapPool()
         mapFilesPool = MapFilesPool()
-        # create temporal directory and ensure it's deleted after programs ends
-#        tempDir = tempfile.mkdtemp()
-#        self.cleanUp = CleanUp(tempDir)
 
         self._progressDlg = None
         self._progressDlgMax = None



More information about the grass-commit mailing list