Chromium Code Reviews| Index: pylib/gyp/common.py |
| =================================================================== |
| --- pylib/gyp/common.py (revision 1672) |
| +++ pylib/gyp/common.py (working copy) |
| @@ -131,6 +131,13 @@ |
| path = os.path.realpath(path) |
| relative_to = os.path.realpath(relative_to) |
| + # On Windows, we can't create a relative path to a different drive, so just |
| + # use the absolute path. |
| + if os.name == 'nt': |
|
scottmg
2013/07/19 16:51:17
i'm not sure whether this will work on cygwin... i
borenet
2013/07/19 17:58:42
Changed to use sys.platform == "win32". I just ve
|
| + if (os.path.splitdrive(path)[0].lower() != |
| + os.path.splitdrive(relative_to)[0].lower()): |
| + return path |
| + |
| # Split the paths into components. |
| path_split = path.split(os.path.sep) |
| relative_to_split = relative_to.split(os.path.sep) |