summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@archlinux.org>2017-08-25 06:53:02 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2017-08-25 07:01:12 +0200
commitcb307bf01aba9f76df5c1f800ae2296091a31fce (patch)
treefc162aea5454e503672a3371b91ca3453d604248
parent2d2bef3513c81e434775c004eb78fc1d73ebae2e (diff)
downloadaur-cb307bf01aba9f76df5c1f800ae2296091a31fce.tar.gz
aur-cb307bf01aba9f76df5c1f800ae2296091a31fce.tar.xz
Do not hardcode path to the Python interpreter
Use `/usr/bin/env python3` instead of `/usr/bin/python3` in the shebang of Python scripts. This adds support for non-standard Python interpreter paths such as the paths used in virtualenv environments. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
-rwxr-xr-xaurweb/git/auth.py2
-rwxr-xr-xaurweb/git/serve.py2
-rwxr-xr-xaurweb/git/update.py2
-rwxr-xr-xaurweb/scripts/aurblup.py2
-rwxr-xr-xaurweb/scripts/mkpkglists.py2
-rwxr-xr-xaurweb/scripts/notify.py2
-rwxr-xr-xaurweb/scripts/pkgmaint.py2
-rwxr-xr-xaurweb/scripts/popupdate.py2
-rwxr-xr-xaurweb/scripts/rendercomment.py2
-rwxr-xr-xaurweb/scripts/tuvotereminder.py2
-rwxr-xr-xschema/gendummydata.py2
11 files changed, 11 insertions, 11 deletions
diff --git a/aurweb/git/auth.py b/aurweb/git/auth.py
index d02390da..b7819a95 100755
--- a/aurweb/git/auth.py
+++ b/aurweb/git/auth.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
import os
import shlex
diff --git a/aurweb/git/serve.py b/aurweb/git/serve.py
index dfaddd13..93ff34cf 100755
--- a/aurweb/git/serve.py
+++ b/aurweb/git/serve.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
import os
import re
diff --git a/aurweb/git/update.py b/aurweb/git/update.py
index 16fa2b07..f681ddb9 100755
--- a/aurweb/git/update.py
+++ b/aurweb/git/update.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
import os
import pygit2
diff --git a/aurweb/scripts/aurblup.py b/aurweb/scripts/aurblup.py
index 1b6de2f0..1433173c 100755
--- a/aurweb/scripts/aurblup.py
+++ b/aurweb/scripts/aurblup.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
import pyalpm
import re
diff --git a/aurweb/scripts/mkpkglists.py b/aurweb/scripts/mkpkglists.py
index 686ee7d0..6724141a 100755
--- a/aurweb/scripts/mkpkglists.py
+++ b/aurweb/scripts/mkpkglists.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
import datetime
import gzip
diff --git a/aurweb/scripts/notify.py b/aurweb/scripts/notify.py
index 69164fba..2d0f7575 100755
--- a/aurweb/scripts/notify.py
+++ b/aurweb/scripts/notify.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
import email.mime.text
import subprocess
diff --git a/aurweb/scripts/pkgmaint.py b/aurweb/scripts/pkgmaint.py
index 3ad9ed8d..36da126f 100755
--- a/aurweb/scripts/pkgmaint.py
+++ b/aurweb/scripts/pkgmaint.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
import time
diff --git a/aurweb/scripts/popupdate.py b/aurweb/scripts/popupdate.py
index 58cd0185..b64deedb 100755
--- a/aurweb/scripts/popupdate.py
+++ b/aurweb/scripts/popupdate.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
import time
diff --git a/aurweb/scripts/rendercomment.py b/aurweb/scripts/rendercomment.py
index 9c0aa6a3..22aa856f 100755
--- a/aurweb/scripts/rendercomment.py
+++ b/aurweb/scripts/rendercomment.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
import re
import pygit2
diff --git a/aurweb/scripts/tuvotereminder.py b/aurweb/scripts/tuvotereminder.py
index 97b1d12e..eb3874e1 100755
--- a/aurweb/scripts/tuvotereminder.py
+++ b/aurweb/scripts/tuvotereminder.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
import subprocess
import time
diff --git a/schema/gendummydata.py b/schema/gendummydata.py
index 5ed63327..1f3d0476 100755
--- a/schema/gendummydata.py
+++ b/schema/gendummydata.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
"""
usage: gendummydata.py outputfilename.sql
"""