| 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 """ |
| 11 | 11 |
| 12 # System-level imports | 12 # System-level imports |
| 13 import argparse | 13 import argparse |
| 14 import BaseHTTPServer | 14 import BaseHTTPServer |
| 15 import json | 15 import json |
| 16 import logging | 16 import logging |
| 17 import os | 17 import os |
| 18 import posixpath | 18 import posixpath |
| 19 import re | 19 import re |
| 20 import shutil | 20 import shutil |
| 21 import socket | 21 import socket |
| 22 import subprocess | 22 import subprocess |
| 23 import thread | 23 import thread |
| 24 import threading | 24 import threading |
| 25 import time | 25 import time |
| 26 import urllib | 26 import urllib |
| 27 import urlparse | 27 import urlparse |
| 28 | 28 |
| 29 # Must fix up PYTHONPATH before importing from within Skia | 29 # Must fix up PYTHONPATH before importing from within Skia |
| 30 import fix_pythonpath # pylint: disable=W0611 | 30 import rs_fixpypath # pylint: disable=W0611 |
| 31 | 31 |
| 32 # Imports from within Skia | 32 # Imports from within Skia |
| 33 from py.utils import gs_utils | 33 from py.utils import gs_utils |
| 34 import buildbot_globals | 34 import buildbot_globals |
| 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 |
| (...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 898 reload_seconds=args.reload, config_pairs=config_pairs, | 898 reload_seconds=args.reload, config_pairs=config_pairs, |
| 899 builder_regex_list=args.builders, boto_file_path=args.boto, | 899 builder_regex_list=args.builders, boto_file_path=args.boto, |
| 900 imagediffdb_threads=args.threads) | 900 imagediffdb_threads=args.threads) |
| 901 if args.truncate: | 901 if args.truncate: |
| 902 _SERVER.truncate_results = True | 902 _SERVER.truncate_results = True |
| 903 _SERVER.run() | 903 _SERVER.run() |
| 904 | 904 |
| 905 | 905 |
| 906 if __name__ == '__main__': | 906 if __name__ == '__main__': |
| 907 main() | 907 main() |
| OLD | NEW |