Skip to content

Commit

Permalink
Avoid escaping command_prefix (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
omus authored Sep 20, 2023
1 parent 0155184 commit 448a83c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/ray/_private/runtime_env/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,9 @@ def exec_worker(self, passthrough_args: List[str], language: Language):
else:
command = ["exec"]

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

0 comments on commit 448a83c

Please sign in to comment.