Skip to content

Commit 78eb720

Browse files
committed
Added double quotes surrounding the path.
1 parent e6bddcb commit 78eb720

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/smart_dispatch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def main():
6565
# Add redirect for output and error logs
6666
for i, command in enumerate(commands):
6767
# Change directory before executing command
68-
commands[i] = 'cd {cwd}; '.format(cwd=os.getcwd()) + commands[i]
68+
commands[i] = 'cd "{cwd}"; '.format(cwd=os.getcwd()) + commands[i]
6969
# Log command's output and command's error
7070
log_filename = os.path.join(path_job_logs, smartdispatch.generate_name_from_command(command, max_length_arg=30))
7171
commands[i] += ' 1>> "{output_log}"'.format(output_log=log_filename + ".o")

0 commit comments

Comments
 (0)