All pastes #759081 Raw Edit

Someone

public text v1 · immutable
·published 2007-11-02 20:29 UTC
rendered paste body
import tempfile
from os import environ
from os.path import join

act_root = environ['SUGAR_ACTIVITY_ROOT'] 
tmp_dir = join(act_root, 'tmp')
self._jobject.file_path = tempfile.TemporaryFile(tmp_dir)