aboutsummaryrefslogtreecommitdiffhomepage
path: root/python
diff options
context:
space:
mode:
authorGravatar kenton@google.com <kenton@google.com@630680e5-0e50-0410-840e-4b1c322b438d>2009-04-22 03:20:21 +0000
committerGravatar kenton@google.com <kenton@google.com@630680e5-0e50-0410-840e-4b1c322b438d>2009-04-22 03:20:21 +0000
commit4152d554c410a50f2463e5b4aeeff9c22bb3820e (patch)
tree64faede8f105ef9c3c69139ca734b73b6ca9e71c /python
parentbbbd4d309c95ed3dceaa49f2d68fd7efc37aa226 (diff)
Handle .exe extension when looking for protoc in setup.py.
Diffstat (limited to 'python')
-rwxr-xr-xpython/setup.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/setup.py b/python/setup.py
index f9b890ea..6383bc12 100755
--- a/python/setup.py
+++ b/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")