Lines Matching +full:python +full:- +full:is +full:- +full:python3
1 #!/usr/bin/env python3
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.
10 # Depending on how this script is run, we may or may not have PEP366 package name
18 # Get path of the directory where this script is stored.
30 # Add argument for finding the nanopb generator when using --nanopb_out=
32 if os.path.isfile(os.path.join(mypath, "protoc-gen-nanopb.exe")):
33 protoc_gen_nanopb = os.path.join(mypath, "protoc-gen-nanopb.exe")
35 protoc_gen_nanopb = os.path.join(mypath, "protoc-gen-nanopb.bat")
37 protoc_gen_nanopb = os.path.join(mypath, "protoc-gen-nanopb")
42 args = ['--plugin=protoc-gen-nanopb=%s' % protoc_gen_nanopb] + args