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

Unified Diff: devserver.py

Issue 6425002: devserver: allow calling devserver from anywhere (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/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 | devserver_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: devserver.py
diff --git a/devserver.py b/devserver.py
index 47a576c1629615cb557c7a55cd2e9a6e48f89524..9d4b87ef01f5cc0ba3165ca69af88cb90eecf61b 100755
--- a/devserver.py
+++ b/devserver.py
@@ -30,7 +30,8 @@ def _GetConfig(options):
'server.socket_port': int(options.port),
'server.socket_timeout': 6000,
'response.timeout': 6000,
- 'tools.staticdir.root': os.getcwd(),
+ 'tools.staticdir.root':
+ os.path.dirname(os.path.abspath(sys.argv[0])),
},
'/build':
{
« no previous file with comments | « no previous file | devserver_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698