Use the tmp dir in the activity root dir instead of /tmp.

This commit is contained in:
Tomeu Vizoso
2007-10-24 18:57:53 +02:00
parent 1e740022d0
commit 1c6abcf20f
2 changed files with 5 additions and 1 deletions
+2 -1
View File
@@ -488,7 +488,8 @@ class Activity(Window, gtk.Container):
if self._jobject.file_path:
self.write_file(self._jobject.file_path)
else:
file_path = os.path.join(tempfile.gettempdir(), '%i' % time.time())
file_path = os.path.join(self.get_activity_root(), 'tmp',
'%i' % time.time())
self.write_file(file_path)
self._owns_file = True
self._jobject.file_path = file_path