| OLD | NEW |
| 1 # Copyright 2014 The Swarming Authors. All rights reserved. | 1 # Copyright 2014 The LUCI Authors. All rights reserved. |
| 2 # Use of this source code is governed by the Apache v2.0 license that can be | 2 # Use of this source code is governed by the Apache v2.0 license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 """Runs either task_runner.py, bot_main.py or bot_config.py. | 5 """Runs either task_runner.py, bot_main.py or bot_config.py. |
| 6 | 6 |
| 7 The imports are done late so if an ImportError occurs, it is localized to this | 7 The imports are done late so if an ImportError occurs, it is localized to this |
| 8 command only. | 8 command only. |
| 9 """ | 9 """ |
| 10 | 10 |
| 11 import code | 11 import code |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 with zipfile.ZipFile(THIS_FILE, 'r') as f: | 226 with zipfile.ZipFile(THIS_FILE, 'r') as f: |
| 227 logging.error('Files in %s:\n%s', THIS_FILE, f.namelist()) | 227 logging.error('Files in %s:\n%s', THIS_FILE, f.namelist()) |
| 228 return 1 | 228 return 1 |
| 229 | 229 |
| 230 print >> sys.stderr, 'Unknown command %s' % cmd | 230 print >> sys.stderr, 'Unknown command %s' % cmd |
| 231 return 1 | 231 return 1 |
| 232 | 232 |
| 233 | 233 |
| 234 if __name__ == '__main__': | 234 if __name__ == '__main__': |
| 235 sys.exit(main()) | 235 sys.exit(main()) |
| OLD | NEW |