Commit 4152d554 authored by kenton@google.com's avatar kenton@google.com

Handle .exe extension when looking for protoc in setup.py.

parent bbbd4d30
......@@ -18,6 +18,8 @@ maintainer_email = "protobuf@googlegroups.com"
# Find the Protocol Compiler.
if os.path.exists("../src/protoc"):
protoc = "../src/protoc"
elif os.path.exists("../src/protoc.exe"):
protoc = "../src/protoc.exe"
else:
protoc = find_executable("protoc")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment