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

Unified Diff: builder.py

Issue 6532014: devserver: remove relative path (Closed) Base URL: http://git.chromium.org/git/dev-util.git@master
Patch Set: Created 9 years, 10 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: builder.py
diff --git a/builder.py b/builder.py
index 6d627fda0579ece0d730ec0723b6f53814153bab..e7bccae718b3c8f24f35dc4b9d93953e590ffa22 100644
--- a/builder.py
+++ b/builder.py
@@ -7,6 +7,7 @@
"""Package builder for the dev server."""
import os
import subprocess
+import sys
import cherrypy
@@ -26,7 +27,8 @@ def _OutputOf(command):
"""
scripts = 'scripts/'
if command[0].find(scripts) == 0:
- command[0] = command[0].replace(scripts, '../../' + scripts)
+ server_dir = os.path.dirname(os.path.abspath(sys.argv[0]))
+ command[0] = command[0].replace(scripts, server_dir + '/../../' + scripts)
command_name = ' '.join(command)
cherrypy.log('Executing: ' + command_name, 'BUILD')
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698