Browse Source

Fix Issue 218: Check for protoc executable in vsprojects directory.

kenton@google.com 15 years ago
parent
commit
80aa23df6c
1 changed files with 4 additions and 0 deletions
  1. 4 0
      python/setup.py

+ 4 - 0
python/setup.py

@@ -20,6 +20,10 @@ if os.path.exists("../src/protoc"):
   protoc = "../src/protoc"
   protoc = "../src/protoc"
 elif os.path.exists("../src/protoc.exe"):
 elif os.path.exists("../src/protoc.exe"):
   protoc = "../src/protoc.exe"
   protoc = "../src/protoc.exe"
+elif os.path.exists("../vsprojects/Debug/protoc.exe"):
+  protoc = "../vsprojects/Debug/protoc.exe"
+elif os.path.exists("../vsprojects/Release/protoc.exe"):
+  protoc = "../vsprojects/Release/protoc.exe"
 else:
 else:
   protoc = find_executable("protoc")
   protoc = find_executable("protoc")