Skip to content

Commit f41b9b2

Browse files
authored
Remove redundant assignment of scratch_home (#25)
1 parent 1e17d3a commit f41b9b2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

csub.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,12 @@ def build_runai_command(
9292

9393
scratch_mount_path = env.get("SCRATCH_MOUNT_PATH", "/mloscratch")
9494
scratch_root = env.get("SCRATCH_HOME_ROOT") or f"{scratch_mount_path}/homes"
95+
scratch_home = env.get("SCRATCH_HOME") or f"{scratch_root}/{env['LDAP_USERNAME']}"
9596
working_dir = env.get("WORKING_DIR") or f"{scratch_root}/{env['LDAP_USERNAME']}"
9697
hf_home = env.get("HF_HOME") or f"{scratch_mount_path}/hf_cache"
9798
run_uid = str(args.uid) if args.uid is not None else env["LDAP_UID"]
9899
run_gid = str(args.gid) if args.gid is not None else env["LDAP_GID"]
99100

100-
scratch_home = working_dir
101-
102101
literal_env = {
103102
"HOME": f"/home/{env['LDAP_USERNAME']}",
104103
"NB_USER": env["LDAP_USERNAME"],

0 commit comments

Comments
 (0)