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..1fa459af0815d1162f678964dbc2fd9e518a5b26 100644 |
--- a/visual_studio/NativeClientVSAddIn/NativeClientVSAddIn/WebServer.cs |
+++ b/visual_studio/NativeClientVSAddIn/NativeClientVSAddIn/WebServer.cs |
@@ -4,8 +4,8 @@ |
namespace NativeClientVSAddIn |
{ |
- using System; |
- |
+ using System; |
+ using System.IO; |
binji
2012/11/12 21:27:02
weird indent... but it kinda makes sense. Typo?
Sam Clegg
2012/11/12 21:56:22
Done.
|
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 |