Fix spaces in paths on Windows also
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user