Fix spaces in paths on Windows also
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>
Sun, 29 Dec 2013 19:36:06 +0000 (21:36 +0200)
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>
Sun, 29 Dec 2013 19:36:06 +0000 (21:36 +0200)
generator/protoc-gen-nanopb.bat
tests/site_scons/site_tools/nanopb.py

index 3eed057..7624984 100644 (file)
@@ -9,4 +9,4 @@
 :: --plugin= on the command line.
 
 set mydir=%~dp0
-python %mydir%\nanopb_generator.py --protoc-plugin
+python "%mydir%\nanopb_generator.py" --protoc-plugin
index 9783766..9197e19 100644 (file)
@@ -58,7 +58,7 @@ def _detect_protoc(env):
         return env['PROTOC']
     
     p = _detect_nanopb(env)
-    p1 = os.path.join(p, 'generator-bin', 'protoc')
+    p1 = os.path.join(p, 'generator-bin', 'protoc' + env['PROGSUFFIX'])
     if os.path.exists(p1):
         # Use protoc bundled with binary package
         return env['ESCAPE'](p1)