summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2019-03-27 11:07:55 +1000
committerteor <teor@torproject.org>2019-03-27 11:07:55 +1000
commita10d4adc25500e160c71d0d3f32a6f3ebbf3c9fd (patch)
tree2e524f640d70ba308e0348ad233cdeb6e1fc8bf5 /scripts
parent57999e330b82fa3a360406dfb28b7a35fb50d602 (diff)
downloadtor-a10d4adc25500e160c71d0d3f32a6f3ebbf3c9fd.tar.gz
tor-a10d4adc25500e160c71d0d3f32a6f3ebbf3c9fd.zip
Stop assuming that /usr/bin/python3 exists
For scripts that work with python2, use /usr/bin/python. Otherwise, use /usr/bin/env python3. Fixes bug 29913; bugfix on 0.2.5.3-alpha.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/maint/checkIncludes.py2
-rwxr-xr-xscripts/maint/practracker/practracker.py2
-rwxr-xr-xscripts/maint/rectify_include_paths.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/scripts/maint/checkIncludes.py b/scripts/maint/checkIncludes.py
index 3afd9bbebe..ec9350b9b1 100755
--- a/scripts/maint/checkIncludes.py
+++ b/scripts/maint/checkIncludes.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/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/practracker.py b/scripts/maint/practracker/practracker.py
index 22cb46c749..febb14639d 100755
--- a/scripts/maint/practracker/practracker.py
+++ b/scripts/maint/practracker/practracker.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/python
"""
Best-practices tracker for Tor source code.
diff --git a/scripts/maint/rectify_include_paths.py b/scripts/maint/rectify_include_paths.py
index 401fadae6d..d1a2328ca6 100755
--- a/scripts/maint/rectify_include_paths.py
+++ b/scripts/maint/rectify_include_paths.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/python
import os
import os.path