diff --git a/patchelf/launcher/launch.py b/patchelf/launcher/launch.py index 3a28e514f323e7bf88487c4346f31d4760a39c8e..eef2bc6b75bc5e091ff540330793f42d7658ef71 100644 --- a/patchelf/launcher/launch.py +++ b/patchelf/launcher/launch.py @@ -4,6 +4,7 @@ from argparse import REMAINDER, ArgumentParser from logging import getLogger from os import environ, getpid from pathlib import Path, PurePath +from shlex import split from shutil import move from subprocess import CalledProcessError, run from sys import argv, exit @@ -122,7 +123,7 @@ def execute( class BazelArgumentParser(ArgumentParser): def convert_arg_line_to_args(self, line): - return (line.removeprefix("'").removesuffix("'"),) + return split(line) def main(exe: Path, *args: str) -> int: