protoc.bat 302 B

123456789
  1. @echo off
  2. :: This file acts as a drop-in replacement of binary protoc.exe.
  3. :: It will use either Python-based protoc from grpcio-tools package,
  4. :: or if it is not available, protoc.exe from path if found.
  5. setLocal enableDelayedExpansion
  6. set mydir=%~dp0
  7. python "%mydir%\protoc" %*
  8. exit /b %ERRORLEVEL%