X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=tests%2Fsite_scons%2Fsite_tools%2Fnanopb.py;h=9783766644ae25ee4332b4a7a45743d8b15e6c1c;hb=da8210b947821b2002ce7dfb34eba213a2da73a3;hp=0ed7046409daadd79241b59ec70930b0e4a03600;hpb=1fc90ab4c4731ab521ee7f6b4f1f936f76520e2e;p=apps%2Fagl-service-can-low-level.git diff --git a/tests/site_scons/site_tools/nanopb.py b/tests/site_scons/site_tools/nanopb.py index 0ed70464..97837666 100644 --- a/tests/site_scons/site_tools/nanopb.py +++ b/tests/site_scons/site_tools/nanopb.py @@ -61,12 +61,12 @@ def _detect_protoc(env): p1 = os.path.join(p, 'generator-bin', 'protoc') if os.path.exists(p1): # Use protoc bundled with binary package - return p1 + return env['ESCAPE'](p1) p = env.WhereIs('protoc') if p: # Use protoc from path - return p + return env['ESCAPE'](p) raise SCons.Errors.StopError(NanopbWarning, "Could not find the protoc compiler")