| Index: chrome/test/chromedriver/util.py
|
| diff --git a/chrome/test/chromedriver/util.py b/chrome/test/chromedriver/util.py
|
| index b28502af483216d8c65e85310d0e55c2db5383e5..d8eed0cc02de03b02112d47643e930773ed68a31 100644
|
| --- a/chrome/test/chromedriver/util.py
|
| +++ b/chrome/test/chromedriver/util.py
|
| @@ -39,6 +39,14 @@ def IsMac():
|
| return sys.platform.startswith('darwin')
|
|
|
|
|
| +def GetAbsolutePathOfUserPath(user_path):
|
| + """Expand the given |user_path| (like "~/file") and return its absolute path.
|
| + """
|
| + if user_path is None:
|
| + return None
|
| + return os.path.abspath(os.path.expanduser(user_path))
|
| +
|
| +
|
| def _DeleteDir(path):
|
| """Deletes a directory recursively, which must exist."""
|
| # Don't use shutil.rmtree because it can't delete read-only files on Win.
|
|
|