| OLD | NEW |
| 1 #!/usr/bin/python | |
| 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 5 | 4 |
| 6 """Common paths for pyauto tests.""" | 5 """Common paths for pyauto tests.""" |
| 7 | 6 |
| 8 import os | 7 import os |
| 9 import sys | 8 import sys |
| 10 | 9 |
| 11 | 10 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 exe_name = 'chromedriver' | 42 exe_name = 'chromedriver' |
| 44 if sys.platform == 'win32': | 43 if sys.platform == 'win32': |
| 45 exe_name += '.exe' | 44 exe_name += '.exe' |
| 46 | 45 |
| 47 import pyautolib | 46 import pyautolib |
| 48 dir = os.path.dirname(pyautolib.__file__) | 47 dir = os.path.dirname(pyautolib.__file__) |
| 49 exe = os.path.join(dir, exe_name) | 48 exe = os.path.join(dir, exe_name) |
| 50 if os.path.exists(exe): | 49 if os.path.exists(exe): |
| 51 return exe | 50 return exe |
| 52 return None | 51 return None |
| OLD | NEW |