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

pull/3335/head
kenton@google.com 16 years ago
parent bbbd4d309c
commit 4152d554c4
  1. 2
      python/setup.py

@ -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")

Loading…
Cancel
Save