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

Unified Diff: sky/tools/sky_server

Issue 702603005: Add a sketch of a test_perf script (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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: sky/tools/sky_server
diff --git a/sky/tools/sky_server b/sky/tools/sky_server
index da42f1acf3f82da6c8223d8ae3b911e3756417b9..13079955f3109bda0353797727fe83b8996fa041 100755
--- a/sky/tools/sky_server
+++ b/sky/tools/sky_server
@@ -8,15 +8,7 @@ import cherrypy
import json
import os
import staticdirindex
-
-
-BUILD_DIRECTORY = 'out'
-CONFIG_DIRECTORY = 'Debug'
-SRC_ROOT = os.path.abspath(os.path.join(__file__, os.pardir, os.pardir,
- os.pardir))
-SKY_ROOT = os.path.join(SRC_ROOT, 'sky')
-GEN_ROOT = os.path.join(SRC_ROOT, BUILD_DIRECTORY, CONFIG_DIRECTORY, 'gen')
-
+import skypy.paths as paths
def skydir(section="", dir="", path="", **kwargs):
if cherrypy.request.params.get('format') is None:
@@ -62,15 +54,15 @@ def main():
},
'/mojo/public': {
'tools.staticdir.on': True,
- 'tools.staticdir.dir': os.path.join(GEN_ROOT, 'mojo', 'public'),
+ 'tools.staticdir.dir': os.path.join(paths.GEN_ROOT, 'mojo', 'public'),
},
'/mojo/services': {
'tools.staticdir.on': True,
- 'tools.staticdir.dir': os.path.join(GEN_ROOT, 'mojo', 'services'),
+ 'tools.staticdir.dir': os.path.join(paths.GEN_ROOT, 'mojo', 'services'),
},
'/sky/services': {
'tools.staticdir.on': True,
- 'tools.staticdir.dir': os.path.join(GEN_ROOT, 'sky', 'services'),
+ 'tools.staticdir.dir': os.path.join(paths.GEN_ROOT, 'sky', 'services'),
},
}
cherrypy.quickstart(config=config)
« no previous file with comments | « sky/benchmarks/resources/runner.sky ('k') | sky/tools/skydb » ('j') | sky/tools/test_perf » ('J')

Powered by Google App Engine
This is Rietveld 408576698