OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 import logging | 6 import logging |
7 import os | 7 import os |
8 import sys | 8 import sys |
9 | 9 |
10 | 10 |
11 def _SetupPaths(): | 11 def _SetupPaths(): |
(...skipping 22 matching lines...) Expand all Loading... |
34 creds = constants.CREDENTIALS['$default'] | 34 creds = constants.CREDENTIALS['$default'] |
35 username = creds[0] | 35 username = creds[0] |
36 passwd = creds[1] | 36 passwd = creds[1] |
37 self.Login(username, passwd) | 37 self.Login(username, passwd) |
38 assert self.GetLoginInfo()['is_logged_in'] | 38 assert self.GetLoginInfo()['is_logged_in'] |
39 logging.info('Logged in as %s.' % username) | 39 logging.info('Logged in as %s.' % username) |
40 | 40 |
41 | 41 |
42 if __name__ == '__main__': | 42 if __name__ == '__main__': |
43 pyauto.Main() | 43 pyauto.Main() |
OLD | NEW |