Skip to content

Commit 448a83c

Browse files
authored
Avoid escaping command_prefix (#10)
1 parent 0155184 commit 448a83c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/ray/_private/runtime_env/context.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,9 @@ def exec_worker(self, passthrough_args: List[str], language: Language):
7777
else:
7878
command = ["exec"]
7979

80+
# Avoid escaping `command_prefix`
81+
command_str = " ".join(self.command_prefix + [shlex.join(command + passthrough_args)])
8082
command = self.command_prefix + command + passthrough_args
81-
command_str = shlex.join(command)
8283
# TODO(SongGuyang): We add this env to command for macOS because it doesn't
8384
# work for the C++ process of `os.execvp`. We should find a better way to
8485
# fix it.

0 commit comments

Comments
 (0)