OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2017 The Chromium Authors. All rights reserved. | 2 # Copyright 2017 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 os | 6 import os |
7 import sys | 7 import sys |
8 | 8 |
9 if __name__ == '__main__': | 9 if __name__ == '__main__': |
10 tracing_path = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) | 10 tracing_path = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) |
11 symbolizer_path = os.path.join(tracing_path, 'tracing', 'extras', | 11 sys.path.append(tracing_path) |
12 'symbolizer') | 12 from tracing.extras.symbolizer import symbolize_trace |
13 sys.path.append(symbolizer_path) | |
14 import symbolize_trace | |
15 sys.exit(symbolize_trace.main(sys.argv[1:])) | 13 sys.exit(symbolize_trace.main(sys.argv[1:])) |
OLD | NEW |