Exec: search for executables in the PATH

Using execvp instead of execv. It'll look for the binary in PATH if
the bin_path provided is not an explicit path.
This commit is contained in:
Félix Baylac Jacqué 2022-12-05 14:44:27 +01:00
parent 375148c949
commit d020c8f4fe
1 changed files with 1 additions and 1 deletions

View File

@ -422,7 +422,7 @@ def exec_binary(bin_path: str, args: List[str]) -> None:
# The following two env variables are required by our patched libglvnd
# implementation to figure out what kind of driver the host
# machine is using.
os.execv(bin_path, [bin_path] + args)
os.execvp(bin_path, [bin_path] + args)
def main(args):