aboutsummaryrefslogtreecommitdiff
path: root/scripts/maint/practracker
diff options
context:
space:
mode:
authorPanagiotis Vasilopoulos <hello@alwayslivid.com>2020-02-16 21:58:01 +0200
committerPanagiotis Vasilopoulos <hello@alwayslivid.com>2020-02-16 21:58:01 +0200
commit674a821fbbdc9ca0a3af02129d463ec1e700094f (patch)
tree656cf4fa31eac468d05472343a11df99d9689b95 /scripts/maint/practracker
parenta6509cb86744f8f20bd522c744aecf88474a039f (diff)
downloadtor-674a821fbbdc9ca0a3af02129d463ec1e700094f.tar.gz
tor-674a821fbbdc9ca0a3af02129d463ec1e700094f.zip
Stop assuming that /usr/bin/python exists
Fixes 33192
Diffstat (limited to 'scripts/maint/practracker')
-rwxr-xr-xscripts/maint/practracker/includes.py2
-rw-r--r--scripts/maint/practracker/metrics.py2
-rwxr-xr-xscripts/maint/practracker/practracker.py2
-rwxr-xr-xscripts/maint/practracker/practracker_tests.py2
4 files changed, 4 insertions, 4 deletions
diff --git a/scripts/maint/practracker/includes.py b/scripts/maint/practracker/includes.py
index fe0f32e253..e9b02c35b0 100755
--- a/scripts/maint/practracker/includes.py
+++ b/scripts/maint/practracker/includes.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
# Copyright 2018 The Tor Project, Inc. See LICENSE file for licensing info.
"""This script looks through all the directories for files matching *.c or
diff --git a/scripts/maint/practracker/metrics.py b/scripts/maint/practracker/metrics.py
index ae88b84f31..300a4501a9 100644
--- a/scripts/maint/practracker/metrics.py
+++ b/scripts/maint/practracker/metrics.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
# Implementation of various source code metrics.
# These are currently ad-hoc string operations and regexps.
diff --git a/scripts/maint/practracker/practracker.py b/scripts/maint/practracker/practracker.py
index 6149fb79cb..b6a1f78137 100755
--- a/scripts/maint/practracker/practracker.py
+++ b/scripts/maint/practracker/practracker.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
"""
Best-practices tracker for Tor source code.
diff --git a/scripts/maint/practracker/practracker_tests.py b/scripts/maint/practracker/practracker_tests.py
index 8d0418880c..e03c9e05ae 100755
--- a/scripts/maint/practracker/practracker_tests.py
+++ b/scripts/maint/practracker/practracker_tests.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
"""Some simple tests for practracker metrics"""