Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(666)

Unified Diff: visual_studio/NativeClientVSAddIn/NativeClientVSAddIn/WebServer.cs

Issue 11375004: [NaCl Addin] Fix to PNaCl lib creation from MSVS (Closed) Base URL: http://nativeclient-sdk.googlecode.com/svn/trunk/src
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698