From 9e0a8d29fa76adcb3f27bb2e20f16fefc2a8591e Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Fri, 24 Jan 2020 21:33:47 +0100 Subject: Use 'python3' instead of 'python' in hashbangs It's not obligatory for distributions to have a 'python' binary these days, but 'python3' is likely to be available: https://www.python.org/dev/peps/pep-0394/#for-python-runtime-distributors. Change all hashbangs to point to 'python3'. This will break running $ ./script.py on *nix systems that don't have a 'python3' executable. Changing it to $ python script.py is pretty painless at least. This change won't break Python 2 when installing via 'pip', because entry_points creates bounce scripts with their own hashbangs. The major version will be increased, in case someone looks at the major version but doesn't install via 'pip'. Fixes: #89 --- genconfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'genconfig.py') diff --git a/genconfig.py b/genconfig.py index d0a8870..62f065b 100755 --- a/genconfig.py +++ b/genconfig.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Copyright (c) 2018-2019, Ulf Magnusson # SPDX-License-Identifier: ISC -- cgit v1.2.3