Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar

Conflicts:

	NEWS
This commit is contained in:
Simon McVittie
2007-10-31 11:58:44 +00:00
17 changed files with 609 additions and 240 deletions
+1 -1
View File
@@ -683,7 +683,7 @@ class Activity(Window, gtk.Container):
if self._jobject.file_path:
self.write_file(self._jobject.file_path)
else:
file_path = os.path.join(self.get_activity_root(), 'tmp',
file_path = os.path.join(self.get_activity_root(), 'data',
'%i' % time.time())
self.write_file(file_path)
self._owns_file = True
+9
View File
@@ -79,7 +79,16 @@ def get_environment(activity):
environ = os.environ.copy()
bin_path = os.path.join(activity.path, 'bin')
activity_root = env.get_profile_path(activity.bundle_id)
if not os.path.exists(activity_root):
os.mkdir(activity_root)
data_dir = os.path.join(activity_root, 'data')
os.mkdir(data_dir)
tmp_dir = os.path.join(activity_root, 'tmp')
os.mkdir(tmp_dir)
environ['SUGAR_BUNDLE_PATH'] = activity.path
environ['SUGAR_ACTIVITY_ROOT'] = activity_root