[1/3] Do not hardcode path to the Python interpreter

Message ID 20170825051053.20074-1-lfleischer@archlinux.org
State Accepted, archived
Headers show
Series [1/3] Do not hardcode path to the Python interpreter | expand

Commit Message

Lukas Fleischer Aug. 25, 2017, 5:10 a.m. UTC
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>
---
 aurweb/git/auth.py               | 2 +-
 aurweb/git/serve.py              | 2 +-
 aurweb/git/update.py             | 2 +-
 aurweb/scripts/aurblup.py        | 2 +-
 aurweb/scripts/mkpkglists.py     | 2 +-
 aurweb/scripts/notify.py         | 2 +-
 aurweb/scripts/pkgmaint.py       | 2 +-
 aurweb/scripts/popupdate.py      | 2 +-
 aurweb/scripts/rendercomment.py  | 2 +-
 aurweb/scripts/tuvotereminder.py | 2 +-
 schema/gendummydata.py           | 2 +-
 11 files changed, 11 insertions(+), 11 deletions(-)

Patch

diff --git a/aurweb/git/auth.py b/aurweb/git/auth.py
index d02390d..b7819a9 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 dfaddd1..93ff34c 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 16fa2b0..f681ddb 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 1b6de2f..1433173 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 686ee7d..6724141 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 69164fb..2d0f757 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 3ad9ed8..36da126 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 58cd018..b64deed 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 9c0aa6a..22aa856 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 97b1d12..eb3874e 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 5ed6332..1f3d047 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
 """