From bb35cd572f7f805eb55160ad13e5bf8f1c174499 Mon Sep 17 00:00:00 2001 From: Paul Floyd Date: Wed, 22 Mar 2023 20:43:30 +0100 Subject: [PATCH] Make cg_annotate independent of python3 install location --- cachegrind/cg_annotate.in | 2 +- cachegrind/tests/ann1.vgtest | 2 +- cachegrind/tests/ann2.vgtest | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cachegrind/cg_annotate.in b/cachegrind/cg_annotate.in index 247026f1fa..91d75aecdf 100755 --- a/cachegrind/cg_annotate.in +++ b/cachegrind/cg_annotate.in @@ -1,4 +1,4 @@ -#! /usr/bin/python3 +#! /usr/bin/env python3 # pyright: strict # -------------------------------------------------------------------- diff --git a/cachegrind/tests/ann1.vgtest b/cachegrind/tests/ann1.vgtest index e3e574276a..660f524f09 100644 --- a/cachegrind/tests/ann1.vgtest +++ b/cachegrind/tests/ann1.vgtest @@ -2,5 +2,5 @@ # the post-processing of the cgout-test file. prog: ../../tests/true vgopts: --cachegrind-out-file=cachegrind.out -post: touch cgout-test && perl ../../cachegrind/cg_annotate --show=Ir,I1mr,ILmr --show-percs=no cgout-test +post: touch cgout-test && python3 ../../cachegrind/cg_annotate --show=Ir,I1mr,ILmr --show-percs=no cgout-test cleanup: rm cachegrind.out diff --git a/cachegrind/tests/ann2.vgtest b/cachegrind/tests/ann2.vgtest index 7cf1b7fcd3..9ef76e38e9 100644 --- a/cachegrind/tests/ann2.vgtest +++ b/cachegrind/tests/ann2.vgtest @@ -2,5 +2,5 @@ # the post-processing of the cgout-test file. prog: ../../tests/true vgopts: --cachegrind-out-file=cachegrind.out -post: touch cgout-test && perl ../../cachegrind/cg_annotate --sort=Dr --show=Dw,Dr,Ir --auto=no cgout-test a.c +post: touch cgout-test && python3 ../../cachegrind/cg_annotate --sort=Dr --show=Dw,Dr,Ir --auto=no cgout-test a.c cleanup: rm cachegrind.out -- 2.47.2