Commit 83494392 authored by Christoph Arthofer's avatar Christoph Arthofer
Browse files

file permissions

parent d19760f9
......@@ -739,18 +739,18 @@ if __name__ == "__main__":
job_ids = ['' for _ in range(100)]
task_count = 0
os.mkdir(base_dir, mode=0o770) if not os.path.exists(base_dir) else print(base_dir + ' exists')
os.chmod(base_dir, 0o770)
os.mkdir(base_dir, mode=0o777) if not os.path.exists(base_dir) else print(base_dir + ' exists')
os.chmod(base_dir, 0o777)
tree = FileTree.read(tree_path, top_level='')
tree = tree.update(data_dir=data_dir, template_dir=base_dir)
script_dir = tree.get('script_dir')
os.mkdir(script_dir, mode=0o770) if not os.path.exists(script_dir) else print(script_dir + ' exists')
os.mkdir(script_dir, mode=0o777) if not os.path.exists(script_dir) else print(script_dir + ' exists')
log_dir = tree.get('log_dir')
os.mkdir(log_dir, mode=0o770) if not os.path.exists(log_dir) else print(log_dir + ' exists')
os.mkdir(log_dir, mode=0o777) if not os.path.exists(log_dir) else print(log_dir + ' exists')
misc_dir = tree.get('misc_dir')
os.mkdir(misc_dir, mode=0o770) if not os.path.exists(misc_dir) else print(misc_dir + ' exists')
os.mkdir(misc_dir, mode=0o777) if not os.path.exists(misc_dir) else print(misc_dir + ' exists')
shutil.copyfile(identity_path,tree.get('identity_mat'))
ref_idx = 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment