| Index: chrome/common/extensions/docs/server2/test_util.py
|
| diff --git a/chrome/common/extensions/docs/server2/test_util.py b/chrome/common/extensions/docs/server2/test_util.py
|
| index 27287bf81ee192753428db1cf21e5c76e319458f..95db17651fe45a8927e77ed5dc30ebfd2758b4a4 100644
|
| --- a/chrome/common/extensions/docs/server2/test_util.py
|
| +++ b/chrome/common/extensions/docs/server2/test_util.py
|
| @@ -52,6 +52,11 @@ def _ReplaceLogging(name, replacement):
|
| return decorator
|
|
|
|
|
| -def ReadFile(*path):
|
| - with open(os.path.join(sys.path[0], '..', '..', *path)) as f:
|
| +def ChromiumPath(*path):
|
| + return os.path.join(
|
| + sys.path[0], '..', '..', '..', '..', '..', *path)
|
| +
|
| +
|
| +def ReadFile(*path, **read_args):
|
| + with open(ChromiumPath(*path), **read_args) as f:
|
| return f.read()
|
|
|