We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e830f20 commit 50bd624Copy full SHA for 50bd624
1 file changed
tasks/base_task.py
@@ -251,7 +251,7 @@ def start(cls):
251
t = datetime.now().strftime('%Y%m%d%H%M%S')
252
code_dir = f'{work_dir}/codes/{t}'
253
# TODO: test filesystem calls
254
- os.mkdir(code_dir)
+ os.makedirs(code_dir, exist_ok=True)
255
# subprocess.check_call(f'mkdir "{code_dir}"', shell=True)
256
for c in hparams['save_codes']:
257
shutil.copytree(c, code_dir, dirs_exist_ok=True)
0 commit comments