diff options
author | C. Scott Ananian <cscott@laptop.org> | 2007-12-18 23:06:21 (GMT) |
---|---|---|
committer | C. Scott Ananian <cscott@laptop.org> | 2007-12-18 23:34:18 (GMT) |
commit | f110813ec8f000be7929f6cd227b346aac06034a (patch) | |
tree | 6ca5762048ce7f774d61df727f254ec0594d24c0 /pippy_app.py | |
parent | 259bd3d0e475eb1996e6aca2a726ee9f6ad63846 (diff) |
Work around trac #1731; also give journal read permission for our tmpdir.
Diffstat (limited to 'pippy_app.py')
-rw-r--r-- | pippy_app.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pippy_app.py b/pippy_app.py index 4caf0ba..b56a5c9 100644 --- a/pippy_app.py +++ b/pippy_app.py @@ -294,8 +294,9 @@ class PippyActivity(ViewSourceActivity): self._reset_vte() self._vte.feed(_("Creating activity bundle...")) self._vte.feed("\r\n") + TMPDIR='instance' # XXX: should be 'tmp', once trac #1731 is fixed. app_temp = mkdtemp('.activity', 'Pippy', - '%s/tmp/' % self.get_activity_root()) + os.path.join(self.get_activity_root(), TMPDIR)) sourcefile = os.path.join(app_temp, 'xyzzy.py') # invoke ourself to build the activity bundle. try: @@ -335,6 +336,7 @@ class PippyActivity(ViewSourceActivity): self._logger.debug("Couldn't find bundle: %s"%str(bundle_file)) return # something went wrong. # hand off to journal + os.chmod(app_temp, 755) jobject = datastore.create() metadata = { 'title': '%s Bundle' % title, |