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 --- examples/menuconfig_example.py | 2 +- examples/merge_config.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/menuconfig_example.py b/examples/menuconfig_example.py index a06b05e..606f756 100755 --- a/examples/menuconfig_example.py +++ b/examples/menuconfig_example.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Implements a simple configuration interface on top of Kconfiglib to # demonstrate concepts for building a menuconfig-like. Emulates how the diff --git a/examples/merge_config.py b/examples/merge_config.py index 2681b63..777fe2c 100755 --- a/examples/merge_config.py +++ b/examples/merge_config.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # This script functions similarly to scripts/kconfig/merge_config.sh from the # kernel tree, merging multiple configurations fragments to produce a complete -- cgit v1.2.3