Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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).
- Loading branch information