| OLD | NEW |
| 1 # Copyright 2013 The LUCI Authors. All rights reserved. | 1 # Copyright 2013 The LUCI Authors. All rights reserved. |
| 2 # Use of this source code is governed by the Apache v2.0 license that can be | 2 # Use of this source code is governed under the Apache License, Version 2.0 |
| 3 # found in the LICENSE file. | 3 # that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import os | 5 import os |
| 6 import sys | 6 import sys |
| 7 | 7 |
| 8 # swarming/ | 8 # swarming/ |
| 9 APP_DIR = os.path.dirname(os.path.realpath(os.path.abspath(__file__))) | 9 APP_DIR = os.path.dirname(os.path.realpath(os.path.abspath(__file__))) |
| 10 | 10 |
| 11 | 11 |
| 12 def init_symlinks(root): | 12 def init_symlinks(root): |
| 13 """Adds support for symlink-as-file on Windows. | 13 """Adds support for symlink-as-file on Windows. |
| (...skipping 21 matching lines...) Expand all Loading... |
| 35 def setup_test_env(): | 35 def setup_test_env(): |
| 36 """Sets up App Engine test environment.""" | 36 """Sets up App Engine test environment.""" |
| 37 # For application modules. | 37 # For application modules. |
| 38 sys.path.insert(0, APP_DIR) | 38 sys.path.insert(0, APP_DIR) |
| 39 init_symlinks(APP_DIR) | 39 init_symlinks(APP_DIR) |
| 40 # TODO(maruel): Remove. | 40 # TODO(maruel): Remove. |
| 41 sys.path.insert(0, os.path.join(APP_DIR, 'components', 'third_party')) | 41 sys.path.insert(0, os.path.join(APP_DIR, 'components', 'third_party')) |
| 42 | 42 |
| 43 from test_support import test_env | 43 from test_support import test_env |
| 44 test_env.setup_test_env() | 44 test_env.setup_test_env() |
| OLD | NEW |