summaryrefslogtreecommitdiff
path: root/examples/menuconfig_example.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2020-01-24 21:33:47 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2020-01-24 21:33:47 +0100
commit9e0a8d29fa76adcb3f27bb2e20f16fefc2a8591e (patch)
tree8847c53e42b2692064debdd052f260508f21c0f8 /examples/menuconfig_example.py
parent424d0d38e7be15c52fae761a0a98028c4e13212d (diff)
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
Diffstat (limited to 'examples/menuconfig_example.py')
-rwxr-xr-xexamples/menuconfig_example.py2
1 files changed, 1 insertions, 1 deletions
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