Script execution

This commit is contained in:
gac-x04sa
2019-08-21 11:04:30 +02:00
parent 63fbe48f32
commit 1a8ee14cb4
+4 -1
View File
@@ -186,7 +186,10 @@ def set_user_env(user, exp, path="/sls/X04SA/data/x04sa/ES3/expdata"):
set_setting(DATA_ROOT_PREFERENCE, path)
set_data_path(path + "/" +user + "/" +exp)
#pixel.set_path(path, user + "/" +exp + "/images")
pixel.set_path("../../expdata/" + 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())
def get_user_env():
return (get_setting(USER_NAME_PREFERENCE), get_setting(USER_EXP_PREFERENCE), get_setting(DATA_ROOT_PREFERENCE))