Browse Source

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

kenton@google.com 16 years ago
parent
commit
4152d554c4
1 changed files with 2 additions and 0 deletions
  1. 2 0
      python/setup.py

+ 2 - 0
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")