Make activity space creation a bit more solid

This commit is contained in:
Marco Pesenti Gritti 2007-11-05 21:54:02 +01:00
parent 4b7cb1c831
commit 9e4b78766b
2 changed files with 6 additions and 2 deletions

2
NEWS
View File

@ -1,3 +1,5 @@
* #4650: Failure to write journal files. (marco)
Snapshot ee8712d1c4 Snapshot ee8712d1c4
* #3119: Implement some basic search capabilities in the mesh view. (tomeu) * #3119: Implement some basic search capabilities in the mesh view. (tomeu)

View File

@ -84,10 +84,12 @@ def get_environment(activity):
if not os.path.exists(activity_root): if not os.path.exists(activity_root):
os.mkdir(activity_root) os.mkdir(activity_root)
data_dir = os.path.join(activity_root, 'data') data_dir = os.path.join(activity_root, 'data')
if not os.path.exists(data_dir):
os.mkdir(data_dir) os.mkdir(data_dir)
tmp_dir = os.path.join(activity_root, 'tmp') tmp_dir = os.path.join(activity_root, 'tmp')
if not os.path.exists(tmp_dir):
os.mkdir(tmp_dir) os.mkdir(tmp_dir)
environ['SUGAR_BUNDLE_PATH'] = activity.path environ['SUGAR_BUNDLE_PATH'] = activity.path