Start work on python bootstrap

This commit is contained in:
Kovid Goyal
2022-03-05 15:43:55 +05:30
parent f94d33fa6a
commit 675411df85
2 changed files with 223 additions and 1 deletions

View File

@@ -339,7 +339,7 @@ def get_remote_command(remote_args: List[str], hostname: str = 'localhost', inte
else:
args = [c.replace("'", """'"'"'""") for c in remote_args]
command_to_execute = "exec \"$login_shell\" -c '{}'".format(' '.join(args))
sh_script = load_script(exec_cmd=command_to_execute)
sh_script = load_script(script_type='py' if is_python else 'sh', exec_cmd=command_to_execute)
return [f'{interpreter} -c {shlex.quote(sh_script)}']