Skip to content
Myr

scripts: modify shebang to use "/usr/bin/env python"

Before adoption: this commit came in with the history the project adopted, so no landing records it.

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.

authored by muxator · committed by David Peter · parent 7cdd1f2 · Browse files · 5 files+5 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

5 files+5 added−5 removed

  • other:+5 added−5 removed

5 files+5 added−5 removed

modified:scripts/advanced_statistics.py+1 added-1 removed
1#!/usr/bin/python1#!/usr/bin/env python23import argparse4import json5import numpy as np
33 unmodified lines
modified:scripts/plot_histogram.py+1 added-1 removed
1#!/usr/bin/python1#!/usr/bin/env python23"""This program shows `hyperfine` benchmark results as a histogram."""45import argparse
35 unmodified lines
modified:scripts/plot_parametrized.py+1 added-1 removed
1#!/usr/bin/python1#!/usr/bin/env python23"""This program shows parametrized `hyperfine` benchmark results as an4errorbar plot."""5
49 unmodified lines
modified:scripts/plot_whisker.py+1 added-1 removed
1#!/usr/bin/python1#!/usr/bin/env python23"""This program shows `hyperfine` benchmark results as a box and whisker plot.45Quoting from the matplotlib documentation:
38 unmodified lines
modified:scripts/welch_ttest.py+1 added-1 removed
1#!/usr/bin/python1#!/usr/bin/env python23"""This script performs Welch's t-test on a JSON export file with two4benchmark results to test whether or not the two distributions are5the same."""
33 unmodified lines