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 6setLocal enableDelayedExpansion 7set mydir=%~dp0 8py -3 "%mydir%\protoc" %* 9exit /b %ERRORLEVEL% 10