travis-ci: Build C/C++/Python matrix
[apps/agl-service-can-low-level.git] / generator / protoc-gen-nanopb
index 2de5621..6dc468d 100755 (executable)
@@ -10,4 +10,5 @@
 # --plugin= on the command line.
 
 MYPATH=$(dirname "$0")
-exec python "$MYPATH/nanopb_generator.py" --protoc-plugin
+PYTHON=$(which python2 || which python)
+exec $PYTHON "$MYPATH/nanopb_generator.py" --protoc-plugin