| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2015 The LUCI Authors. All rights reserved. | 2 # Copyright 2015 The LUCI Authors. All rights reserved. |
| 3 # Use of this source code is governed by the Apache v2.0 license that can be | 3 # Use of this source code is governed under the Apache License, Version 2.0 |
| 4 # found in the LICENSE file. | 4 # that can be found in the LICENSE file. |
| 5 | 5 |
| 6 """Prints out attributes as generated by ../swarming_bot/api/os_utilities.py. | 6 """Prints out attributes as generated by ../swarming_bot/api/os_utilities.py. |
| 7 """ | 7 """ |
| 8 | 8 |
| 9 import json | 9 import json |
| 10 import os | 10 import os |
| 11 import sys | 11 import sys |
| 12 | 12 |
| 13 | 13 |
| 14 ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) | 14 ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) |
| (...skipping 26 matching lines...) Expand all Loading... |
| 41 u'state': os_utilities.get_state(), | 41 u'state': os_utilities.get_state(), |
| 42 } | 42 } |
| 43 | 43 |
| 44 json.dump(data, sys.stdout, indent=2, sort_keys=True, separators=(',', ': ')) | 44 json.dump(data, sys.stdout, indent=2, sort_keys=True, separators=(',', ': ')) |
| 45 print('') | 45 print('') |
| 46 return 0 | 46 return 0 |
| 47 | 47 |
| 48 | 48 |
| 49 if __name__ == '__main__': | 49 if __name__ == '__main__': |
| 50 sys.exit(main()) | 50 sys.exit(main()) |
| OLD | NEW |