OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 | 2 |
3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 import os | 7 import os |
8 | 8 |
9 | 9 |
10 def _SetupPaths(): | 10 def _SetupPaths(): |
11 global SRC_THIRD_PARTY, PYTHON_BINDINGS, WEBDRIVER_TEST_DATA | 11 global SRC_THIRD_PARTY, PYTHON_BINDINGS, WEBDRIVER_TEST_DATA |
12 start_dir = os.path.abspath(os.path.dirname(__file__)) | 12 start_dir = os.path.abspath(os.path.dirname(__file__)) |
13 J = os.path.join | 13 J = os.path.join |
14 SRC_THIRD_PARTY = J(start_dir, os.pardir, os.pardir, os.pardir, 'third_party') | 14 SRC_THIRD_PARTY = J(start_dir, os.pardir, os.pardir, os.pardir, os.pardir, |
| 15 'third_party') |
15 webdriver = J(SRC_THIRD_PARTY, 'webdriver') | 16 webdriver = J(SRC_THIRD_PARTY, 'webdriver') |
16 PYTHON_BINDINGS = J(webdriver, 'python') | 17 PYTHON_BINDINGS = J(webdriver, 'python') |
17 WEBDRIVER_TEST_DATA = J(webdriver, 'test_data') | 18 WEBDRIVER_TEST_DATA = J(webdriver, 'test_data') |
18 | 19 |
19 _SetupPaths() | 20 _SetupPaths() |
OLD | NEW |