OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2013 The Swarming Authors. All rights reserved. | 2 # Copyright 2013 The LUCI Authors. All rights reserved. |
3 # Use of this source code is governed under the Apache License, Version 2.0 that | 3 # Use of this source code is governed by the Apache v2.0 license that can be |
4 # can be found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """Archives a set of files or directories to an Isolate Server.""" | 6 """Archives a set of files or directories to an Isolate Server.""" |
7 | 7 |
8 __version__ = '0.4.5' | 8 __version__ = '0.4.5' |
9 | 9 |
10 import base64 | 10 import base64 |
11 import functools | 11 import functools |
12 import logging | 12 import logging |
13 import optparse | 13 import optparse |
14 import os | 14 import os |
(...skipping 2166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2181 def main(args): | 2181 def main(args): |
2182 dispatcher = subcommand.CommandDispatcher(__name__) | 2182 dispatcher = subcommand.CommandDispatcher(__name__) |
2183 return dispatcher.execute(OptionParserIsolateServer(), args) | 2183 return dispatcher.execute(OptionParserIsolateServer(), args) |
2184 | 2184 |
2185 | 2185 |
2186 if __name__ == '__main__': | 2186 if __name__ == '__main__': |
2187 fix_encoding.fix_encoding() | 2187 fix_encoding.fix_encoding() |
2188 tools.disable_buffering() | 2188 tools.disable_buffering() |
2189 colorama.init() | 2189 colorama.init() |
2190 sys.exit(main(sys.argv[1:])) | 2190 sys.exit(main(sys.argv[1:])) |
OLD | NEW |