Allow `generate_py_protobufs` to find a custom protoc (#7936)
Currently, the logic in `generate_py_protobufs` cannot find a custom `protoc` (even though it's supposed to be possible). Fixes: 1. Mark the `--protoc` flag as accepting an argument. 2. If the `--protoc` flag was not passed, try finding `PROTOC` in the environment. 3. (Existing behavior) Otherwise, fall back to `spawn.find_executable`. Hat tip to @bobhancock for uncovering the problem(s).pull/7937/head
parent
54bfa174e7
commit
344f28d4a2
1 changed files with 3 additions and 1 deletions
Loading…
Reference in new issue