Make activity space creation a bit more solid
This commit is contained in:
parent
4b7cb1c831
commit
9e4b78766b
2
NEWS
2
NEWS
@ -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)
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user