diff options
author | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2013-12-29 20:48:30 +0200 |
---|---|---|
committer | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2013-12-29 20:48:30 +0200 |
commit | 7c9a8a132bc98741b97a186b1436f84e853f6fa3 (patch) | |
tree | 42ae22bb2c2b09115c625d887cf2da540cb0c3bf | |
parent | ae7b9a3bd3f54b5d0ba2db428944e38a3cd7b6a2 (diff) |
Fix protoc-gen-nanopb when the path contains spaces
-rwxr-xr-x | generator/protoc-gen-nanopb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/generator/protoc-gen-nanopb b/generator/protoc-gen-nanopb index 90be6a58..2de56216 100755 --- a/generator/protoc-gen-nanopb +++ b/generator/protoc-gen-nanopb @@ -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 |