From aa86d0f04d204fea3b8a876ca5cb95814145ade5 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 1 Mar 2021 16:19:09 +0000 Subject: [PATCH] repo: run launcher with existing python3 program Debian is deleting /usr/bin/python by default, so re-use the existing python3 interp that our wrapper was invoked with. Bug: 1182059 Test: `./repo` still works w/out /usr/bin/python Change-Id: I1806f2ae2f8c6fe8b5f5a95fd2e50735d6e3196a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2715994 Reviewed-by: Michael Mortensen Commit-Queue: Mike Frysinger --- repo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repo b/repo index ea3807439f..560ec8d730 100755 --- a/repo +++ b/repo @@ -48,7 +48,7 @@ def main(argv): if argv and argv[0] == 'sync': _UpdateDepotTools() - os.execv(str(REPO), [sys.argv[0]] + argv) + os.execv(sys.executable, [sys.executable, str(REPO)] + argv) if __name__ == '__main__':