Sfoglia il codice sorgente

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

kenton@google.com 15 anni fa
parent
commit
80aa23df6c
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      python/setup.py

+ 4 - 0
python/setup.py

@@ -20,6 +20,10 @@ if os.path.exists("../src/protoc"):
   protoc = "../src/protoc"
 elif os.path.exists("../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:
   protoc = find_executable("protoc")