OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 | 2 |
3 """ | 3 """ |
4 Copyright 2013 Google Inc. | 4 Copyright 2013 Google Inc. |
5 | 5 |
6 Use of this source code is governed by a BSD-style license that can be | 6 Use of this source code is governed by a BSD-style license that can be |
7 found in the LICENSE file. | 7 found in the LICENSE file. |
8 | 8 |
9 HTTP server for our HTML rebaseline viewer. | 9 HTTP server for our HTML rebaseline viewer. |
10 """ | 10 """ |
(...skipping 13 matching lines...) Expand all Loading... |
24 import threading | 24 import threading |
25 import time | 25 import time |
26 import urlparse | 26 import urlparse |
27 | 27 |
28 # Must fix up PYTHONPATH before importing from within Skia | 28 # Must fix up PYTHONPATH before importing from within Skia |
29 # pylint: disable=W0611 | 29 # pylint: disable=W0611 |
30 import fix_pythonpath | 30 import fix_pythonpath |
31 # pylint: enable=W0611 | 31 # pylint: enable=W0611 |
32 | 32 |
33 # Imports from within Skia | 33 # Imports from within Skia |
34 from pyutils import gs_utils | 34 from py.utils import gs_utils |
35 import gm_json | 35 import gm_json |
36 | 36 |
37 # Imports from local dir | 37 # Imports from local dir |
38 # | 38 # |
39 # pylint: disable=C0301 | 39 # pylint: disable=C0301 |
40 # Note: we import results under a different name, to avoid confusion with the | 40 # Note: we import results under a different name, to avoid confusion with the |
41 # Server.results() property. See discussion at | 41 # Server.results() property. See discussion at |
42 # https://codereview.chromium.org/195943004/diff/1/gm/rebaseline_server/server.p
y#newcode44 | 42 # https://codereview.chromium.org/195943004/diff/1/gm/rebaseline_server/server.p
y#newcode44 |
43 # pylint: enable=C0301 | 43 # pylint: enable=C0301 |
44 import compare_configs | 44 import compare_configs |
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
700 json_filename=args.json_filename, | 700 json_filename=args.json_filename, |
701 gm_summaries_bucket=args.gm_summaries_bucket, | 701 gm_summaries_bucket=args.gm_summaries_bucket, |
702 port=args.port, export=args.export, editable=args.editable, | 702 port=args.port, export=args.export, editable=args.editable, |
703 reload_seconds=args.reload, config_pairs=config_pairs, | 703 reload_seconds=args.reload, config_pairs=config_pairs, |
704 builder_regex_list=args.builders) | 704 builder_regex_list=args.builders) |
705 _SERVER.run() | 705 _SERVER.run() |
706 | 706 |
707 | 707 |
708 if __name__ == '__main__': | 708 if __name__ == '__main__': |
709 main() | 709 main() |
OLD | NEW |