diff options
author | Marc-André Lemburg <mal@egenix.com> | 2002-01-31 18:56:00 (GMT) |
---|---|---|
committer | Marc-André Lemburg <mal@egenix.com> | 2002-01-31 18:56:00 (GMT) |
commit | 2544f51036c51d87be53f6a5e35e867c8333378a (patch) | |
tree | 5f745a0cd4c6d2473af7c6227c9ae5508bf8ffda /Lib/distutils/util.py | |
parent | c318260a7121149153dcfc213a36ac81d8266875 (diff) | |
download | cpython-2544f51036c51d87be53f6a5e35e867c8333378a.zip cpython-2544f51036c51d87be53f6a5e35e867c8333378a.tar.gz cpython-2544f51036c51d87be53f6a5e35e867c8333378a.tar.bz2 |
OS/2 patches by Andrew I MacIntyre for distutils.
Closes patch #435381.
Diffstat (limited to 'Lib/distutils/util.py')
-rw-r--r-- | Lib/distutils/util.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/distutils/util.py b/Lib/distutils/util.py index 1541e02..a51ce66 100644 --- a/Lib/distutils/util.py +++ b/Lib/distutils/util.py @@ -117,6 +117,12 @@ def change_root (new_root, pathname): path = path[1:] return os.path.join(new_root, path) + elif os.name == 'os2': + (drive, path) = os.path.splitdrive(pathname) + if path[0] == os.sep: + path = path[1:] + return os.path.join(new_root, path) + elif os.name == 'mac': if not os.path.isabs(pathname): return os.path.join(new_root, pathname) |