|
@@ -43,7 +43,7 @@ from animation.utils import Orientation, ReplayMode, TemporalType
|
|
|
|
|
|
|
|
|
MAX_COUNT = 4
|
|
|
-TMP_DIR = tempfile.mkdtemp()
|
|
|
+TMP_DIR = None
|
|
|
|
|
|
gcore.set_raise_on_error(True)
|
|
|
|
|
@@ -62,6 +62,9 @@ class AnimationFrame(wx.Frame):
|
|
|
# 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)
|