Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Side by Side Diff: appengine/swarming/tools/bot_archive.py

Issue 2013943002: Changing license header, again! (Closed) Base URL: git@github.com:luci/luci-py.git@master
Patch Set: Fixed third parties Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 """Generates the swarming_bot.zip archive for local testing. 6 """Generates the swarming_bot.zip archive for local testing.
7 """ 7 """
8 8
9 import hashlib 9 import hashlib
10 import json 10 import json
11 import logging 11 import logging
12 import os 12 import os
13 import StringIO 13 import StringIO
14 import sys 14 import sys
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 sys.path.insert(0, ROOT_DIR) 51 sys.path.insert(0, ROOT_DIR)
52 content, _ = get_swarming_bot_zip() 52 content, _ = get_swarming_bot_zip()
53 with open(os.path.join(ROOT_DIR, 'swarming_bot.zip'), 'wb') as f: 53 with open(os.path.join(ROOT_DIR, 'swarming_bot.zip'), 'wb') as f:
54 f.write(content) 54 f.write(content)
55 return 0 55 return 0
56 56
57 57
58 if __name__ == '__main__': 58 if __name__ == '__main__':
59 sys.exit(main()) 59 sys.exit(main())
OLDNEW
« no previous file with comments | « appengine/swarming/tools/android/udev_start_bot_deferred.sh ('k') | appengine/swarming/tools/os_utilities.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698