Index: visual_studio/NativeClientVSAddIn/NativeClientVSAddIn/WebServer.cs |
diff --git a/visual_studio/NativeClientVSAddIn/NativeClientVSAddIn/WebServer.cs b/visual_studio/NativeClientVSAddIn/NativeClientVSAddIn/WebServer.cs |
index f60a58298c66b6ed2d540d5e9274b56bade47eb6..2d7c144b2ff9385a49ff50feb2a3a98e41a9bbd4 100644 |
--- a/visual_studio/NativeClientVSAddIn/NativeClientVSAddIn/WebServer.cs |
+++ b/visual_studio/NativeClientVSAddIn/NativeClientVSAddIn/WebServer.cs |
@@ -5,7 +5,7 @@ |
namespace NativeClientVSAddIn |
{ |
using System; |
- |
+ using System.IO; |
using EnvDTE; |
using Microsoft.VisualStudio.VCProjectEngine; |
@@ -62,8 +62,10 @@ namespace NativeClientVSAddIn |
} |
string webServerExecutable = "python.exe"; |
- string webServerArguments = string.Format( |
- "{0}\\examples\\httpd.py --no_dir_check {1}", properties.SDKRootDirectory, webServerPort); |
+ string httpd = Path.Combine(properties.SDKRootDirectory, "examples", "httpd.py"); |
+ if (!File.Exists(httpd)) |
+ httpd = Path.Combine(properties.SDKRootDirectory, "tools", "httpd.py"); |
+ string webServerArguments = httpd + " --no_dir_check " + webServerPort; |
// Start the web server process. |
try |