| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2014 The Chromium Authors. All rights reserved. | 2 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 import argparse | 6 import argparse |
| 7 import os | 7 import os |
| 8 import cherrypy | 8 import cherrypy |
| 9 | 9 |
| 10 | 10 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 'tools.staticdir.dir': os.path.abspath(args.app_path), | 35 'tools.staticdir.dir': os.path.abspath(args.app_path), |
| 36 }, | 36 }, |
| 37 '/mojo': { | 37 '/mojo': { |
| 38 'tools.staticdir.on': True, | 38 'tools.staticdir.on': True, |
| 39 'tools.staticdir.dir': os.path.join(GEN_ROOT, 'mojo'), | 39 'tools.staticdir.dir': os.path.join(GEN_ROOT, 'mojo'), |
| 40 }, | 40 }, |
| 41 '/sky': { | 41 '/sky': { |
| 42 'tools.staticdir.on': True, | 42 'tools.staticdir.on': True, |
| 43 'tools.staticdir.dir': os.path.join(GEN_ROOT, 'sky'), | 43 'tools.staticdir.dir': os.path.join(GEN_ROOT, 'sky'), |
| 44 }, | 44 }, |
| 45 # src-relative to avoid needing to rebuild when changing inspector: | |
| 46 '/sky/framework': { | 45 '/sky/framework': { |
| 47 'tools.staticdir.on': True, | 46 'tools.staticdir.on': True, |
| 48 'tools.staticdir.dir': | 47 'tools.staticdir.dir': |
| 49 os.path.join(SKY_ROOT, 'framework'), | 48 os.path.join(SKY_ROOT, 'framework'), |
| 50 }, | 49 }, |
| 51 '/sky/framework/inspector/server': { | |
| 52 'tools.staticdir.on': True, | |
| 53 'tools.staticdir.dir': os.path.join(GEN_ROOT, 'sky', 'framework', | |
| 54 'inspector', 'server'), | |
| 55 }, | |
| 56 } | 50 } |
| 57 cherrypy.quickstart(config=config) | 51 cherrypy.quickstart(config=config) |
| 58 | 52 |
| 59 | 53 |
| 60 if __name__ == '__main__': | 54 if __name__ == '__main__': |
| 61 main() | 55 main() |
| OLD | NEW |