Allen Li | ec5beb3 | 2016-09-08 15:31:41 -0700 | [diff] [blame] | 1 | # Copyright 2016 The Chromium OS Authors. All rights reserved. |
| 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | """For running module as script.""" |
| 6 | |
| 7 | from __future__ import print_function |
| 8 | |
| 9 | import sys |
| 10 | |
| 11 | from chromite.lib import cros_logging as logging |
| 12 | from chromite.scripts import sysmon |
| 13 | |
| 14 | try: |
| 15 | sysmon.main(sys.argv[1:]) |
| 16 | except Exception: |
| 17 | logging.exception('sysmon throws an error') |
| 18 | raise |