瀏覽代碼

wxGUI/animation: change tmp directory where pictures are generated

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@59560 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 11 年之前
父節點
當前提交
ad905cad2d
共有 1 個文件被更改,包括 2 次插入4 次删除
  1. 2 4
      gui/wxpython/animation/frame.py

+ 2 - 4
gui/wxpython/animation/frame.py

@@ -62,17 +62,15 @@ class AnimationFrame(wx.Frame):
         # 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