Skip to content

Commit

Permalink
Special chars creating submit issues (#723)
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinp0 authored Dec 14, 2023
2 parents 431854b + 9a88498 commit 70fe03c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arc/job/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def submit_job(path: str,
job_status, job_id = '', ''
submit_cmd = submit_cmd or submit_command[cluster_soft]
submit_filename = submit_filename or submit_filenames[cluster_soft]
cmd = f"cd {path}; {submit_cmd} {submit_filename}"
cmd = f'cd "{path}"; {submit_cmd} {submit_filename}'
stdout, stderr = execute_command(cmd)
if not len(stdout):
time.sleep(10)
Expand Down Expand Up @@ -390,7 +390,7 @@ def change_mode(mode: str,
if os.path.isfile(path):
path = os.path.dirname(path)
recursive = ' -R' if recursive else ''
command = [f'cd {path}'] if path else []
command = [f'cd "{path}"'] if path else []
command.append(f'chmod{recursive} {mode} {file_name}')
execute_command(command=command)

Expand Down

0 comments on commit 70fe03c

Please sign in to comment.