From e2f91e3434ddf2d4cb85d2385057a492eb462166 Mon Sep 17 00:00:00 2001 From: Fox Wilson <2016fwilson@babbage.csl.tjhsst.edu> Date: Tue, 10 Nov 2015 15:00:25 -0500 Subject: [PATCH] Use /usr/bin/env python3 instead of /usr/bin/python3 project-wide This fixes invocations of certain commands when python3 is installed in a nonstandard path (/usr/local/bin, for example). Signed-off-by: Fox Wilson <2016fwilson@tjhsst.edu> --- config/apparmor/lxc-generate-aa-rules.py | 2 +- src/lxc/lxc-ls.in | 2 +- src/lxc/lxc-start-ephemeral.in | 2 +- src/python-lxc/examples/api_test.py | 2 +- src/python-lxc/examples/pyconsole-vte.py | 2 +- src/python-lxc/examples/pyconsole.py | 2 +- src/python-lxc/setup.py.in | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/config/apparmor/lxc-generate-aa-rules.py b/config/apparmor/lxc-generate-aa-rules.py index 683f5fc6e..d7c9a868e 100755 --- a/config/apparmor/lxc-generate-aa-rules.py +++ b/config/apparmor/lxc-generate-aa-rules.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import sys diff --git a/src/lxc/lxc-ls.in b/src/lxc/lxc-ls.in index 280f48b97..25a3926cc 100755 --- a/src/lxc/lxc-ls.in +++ b/src/lxc/lxc-ls.in @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 # # lxc-ls: List containers # diff --git a/src/lxc/lxc-start-ephemeral.in b/src/lxc/lxc-start-ephemeral.in index 4f7627c07..8d33775b8 100644 --- a/src/lxc/lxc-start-ephemeral.in +++ b/src/lxc/lxc-start-ephemeral.in @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 # # lxc-start-ephemeral: Start a copy of a container using an overlay # diff --git a/src/python-lxc/examples/api_test.py b/src/python-lxc/examples/api_test.py index 2abbb435f..eab4f46e3 100755 --- a/src/python-lxc/examples/api_test.py +++ b/src/python-lxc/examples/api_test.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 # # api_test.py: Test/demo of the python3-lxc API # diff --git a/src/python-lxc/examples/pyconsole-vte.py b/src/python-lxc/examples/pyconsole-vte.py index 89c3df72b..8e07f15e0 100755 --- a/src/python-lxc/examples/pyconsole-vte.py +++ b/src/python-lxc/examples/pyconsole-vte.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 # # pyconsole-vte: Example program showing use of console functions # in the lxc python binding diff --git a/src/python-lxc/examples/pyconsole.py b/src/python-lxc/examples/pyconsole.py index d47b00b97..a9238a034 100755 --- a/src/python-lxc/examples/pyconsole.py +++ b/src/python-lxc/examples/pyconsole.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 # # pyconsole: Example program showing use of console functions # in the lxc python binding diff --git a/src/python-lxc/setup.py.in b/src/python-lxc/setup.py.in index 3b4b1feec..fcb676eb5 100644 --- a/src/python-lxc/setup.py.in +++ b/src/python-lxc/setup.py.in @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 # # python-lxc: Python bindings for LXC # -- 2.39.5