| OLD | NEW |
| 1 # Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2015 The Chromium Authors. All rights reserved. |
| 2 # 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 |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import os | 5 import os |
| 6 import sys | 6 import sys |
| 7 | 7 |
| 8 | 8 |
| 9 def GetChromiumSrcDir(): | |
| 10 return os.path.abspath(os.path.join( | |
| 11 os.path.dirname(__file__), os.pardir, os.pardir, os.pardir, os.pardir)) | |
| 12 | |
| 13 | |
| 14 def GetGpuTestDir(): | |
| 15 return os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir)) | |
| 16 | |
| 17 | |
| 18 def AddDirToPathIfNeeded(*path_parts): | 9 def AddDirToPathIfNeeded(*path_parts): |
| 19 path = os.path.abspath(os.path.join(*path_parts)) | 10 path = os.path.abspath(os.path.join(*path_parts)) |
| 20 if os.path.isdir(path) and path not in sys.path: | 11 if os.path.isdir(path) and path not in sys.path: |
| 21 sys.path.append(path) | 12 sys.path.append(path) |
| 13 |
| 14 |
| 15 def GetChromiumSrcDir(): |
| 16 return os.path.abspath(os.path.join( |
| 17 os.path.dirname(__file__), os.pardir, os.pardir, os.pardir)) |
| OLD | NEW |