Fix spaces in paths on Windows also

This commit is contained in:
Petteri Aimonen
2013-12-29 21:36:06 +02:00
parent da8210b947
commit 125b49bf24
2 changed files with 2 additions and 2 deletions

View 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

View 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)