Fix protoc-gen-nanopb when the path contains spaces

This commit is contained in:
Petteri Aimonen
2013-12-29 20:48:30 +02:00
parent ae7b9a3bd3
commit 7c9a8a132b

View File

@@ -9,4 +9,5 @@
# path is already set up properly and there is no need to give
# --plugin= on the command line.
exec python $(dirname $0)/nanopb_generator.py --protoc-plugin
MYPATH=$(dirname "$0")
exec python "$MYPATH/nanopb_generator.py" --protoc-plugin