Script execution
This commit is contained in:
+5
-3
@@ -183,12 +183,14 @@ def set_user_env(user, exp, path="/sls/X04SA/data/x04sa/ES3/expdata"):
|
||||
"""
|
||||
set_setting(USER_NAME_PREFERENCE, user)
|
||||
set_setting(USER_EXP_PREFERENCE, exp)
|
||||
set_setting(DATA_ROOT_PREFERENCE, path)
|
||||
set_data_path(path + "/" +user + "/" +exp)
|
||||
set_setting(DATA_ROOT_PREFERENCE, path)
|
||||
data_path = path + "/" +user + "/" +exp
|
||||
set_data_path(data_path)
|
||||
|
||||
#pixel.set_path(path, user + "/" +exp + "/images")
|
||||
pixel.set_path("../../expdata/" + user + "/" +exp, "images")
|
||||
if not os.path.exists(pixel.get_full_path()):
|
||||
os.makedirs(pixel.get_full_path())
|
||||
os.makedirs(pixel.get_full_path(), mode = 777)
|
||||
|
||||
|
||||
def get_user_env():
|
||||
|
||||
Reference in New Issue
Block a user