From 5a80a23bdc5df0ca4be679f1cf2ab60cfb9ce11f Mon Sep 17 00:00:00 2001 From: muxator Date: Thu, 8 Oct 2020 22:51:31 +0200 Subject: [PATCH] scripts: modify shebang to use "/usr/bin/env python" Before this patch, executing directly one of these scripts, for example `./plot_hystogram.py` in a unix-like environment meant that the default system-level python would be used, regardless of an eventual activated virtualenv. This was due to the "#!/usr/bin/python" shebang. Changing it to "/usr/bin/env python" is a fairly standard practice, keeps intact the compatiblity with the system level python, and allows a user to run in a virtualenv if he wants. --- scripts/advanced_statistics.py | 2 +- scripts/plot_histogram.py | 2 +- scripts/plot_parametrized.py | 2 +- scripts/plot_whisker.py | 2 +- scripts/welch_ttest.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/advanced_statistics.py b/scripts/advanced_statistics.py index d825be5..8cfdbc0 100755 --- a/scripts/advanced_statistics.py +++ b/scripts/advanced_statistics.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python import argparse import json diff --git a/scripts/plot_histogram.py b/scripts/plot_histogram.py index b2674d2..98afd36 100755 --- a/scripts/plot_histogram.py +++ b/scripts/plot_histogram.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python """This program shows `hyperfine` benchmark results as a histogram.""" diff --git a/scripts/plot_parametrized.py b/scripts/plot_parametrized.py index 0f2e5ae..fbe9205 100755 --- a/scripts/plot_parametrized.py +++ b/scripts/plot_parametrized.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python """This program shows parametrized `hyperfine` benchmark results as an errorbar plot.""" diff --git a/scripts/plot_whisker.py b/scripts/plot_whisker.py index c2ca7e7..a37613f 100755 --- a/scripts/plot_whisker.py +++ b/scripts/plot_whisker.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python """This program shows `hyperfine` benchmark results as a box and whisker plot. diff --git a/scripts/welch_ttest.py b/scripts/welch_ttest.py index 30071a4..dad8aa0 100755 --- a/scripts/welch_ttest.py +++ b/scripts/welch_ttest.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python """This script performs Welch's t-test on a JSON export file with two benchmark results to test whether or not the two distributions are