Script execution

This commit is contained in:
gac-x04sa
2019-08-21 11:32:53 +02:00
parent 6f0af62206
commit 8eecaf70b3
+5 -3
View File
@@ -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():