diff options
-rwxr-xr-x | generator/protoc-gen-nanopb | 1 |
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 |