aboutsummaryrefslogtreecommitdiffstats
path: root/generator
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2015-04-28 18:14:24 +0300
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2015-04-28 18:14:24 +0300
commit0dcfa096e69c8ea081d934086ba2f11c8f5abde7 (patch)
treeb0c2db053d013f3508cbef6eff2e7d3ca93b7d7c /generator
parent47e744f3486812d38ba7ad72d2025bebd2995aae (diff)
Prefer python2 in generator/protoc-gen-nanopb.
Update issue 155 Status: FixedInGit
Diffstat (limited to 'generator')
-rwxr-xr-xgenerator/protoc-gen-nanopb1
1 files changed, 1 insertions, 0 deletions
diff --git a/generator/protoc-gen-nanopb b/generator/protoc-gen-nanopb
index 2de56216..595c65f7 100755
--- a/generator/protoc-gen-nanopb
+++ b/generator/protoc-gen-nanopb
@@ -10,4 +10,5 @@
# --plugin= on the command line.
MYPATH=$(dirname "$0")
+PYTHON=$(which python2 || which python)
exec python "$MYPATH/nanopb_generator.py" --protoc-plugin