summaryrefslogtreecommitdiffstats
path: root/generator/protoc-gen-nanopb
diff options
context:
space:
mode:
authorKyle Manna <kyle@kylemanna.com>2015-09-19 14:42:03 -0700
committerKyle Manna <kyle@kylemanna.com>2015-09-20 18:48:06 -0700
commitb222209e1bf80b2e855817d8f9287c5e2dc1eb04 (patch)
tree66d7c5ec457635c6ea93b42897a57d8e83c05834 /generator/protoc-gen-nanopb
parent6e72df4808aa138f1396ad098ce2d06a6feba882 (diff)
generator: Don't force python2
Python2 is being phased out of the default python interpreter. Arch Linux has moved some time ago and upcoming Debian realeases will follow. My distro, Arch, doesn't have a python2-protobuf version, but does have a python3 version. With a python 2 & 3 compatible generator the exact interpreter can be ignored and can use the system default as most users expect. Update issue #155
Diffstat (limited to 'generator/protoc-gen-nanopb')
-rwxr-xr-xgenerator/protoc-gen-nanopb3
1 files changed, 1 insertions, 2 deletions
diff --git a/generator/protoc-gen-nanopb b/generator/protoc-gen-nanopb
index 6dc468d3..358f97cf 100755
--- a/generator/protoc-gen-nanopb
+++ b/generator/protoc-gen-nanopb
@@ -10,5 +10,4 @@
# --plugin= on the command line.
MYPATH=$(dirname "$0")
-PYTHON=$(which python2 || which python)
-exec $PYTHON "$MYPATH/nanopb_generator.py" --protoc-plugin
+exec "$MYPATH/nanopb_generator.py" --protoc-plugin