Explorar o código

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

kenton@google.com %!s(int64=15) %!d(string=hai) anos
pai
achega
80aa23df6c
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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")