OS/2 patches by Andrew I MacIntyre for distutils.

Closes patch #435381.
This commit is contained in:
Marc-André Lemburg 2002-01-31 18:56:00 +00:00
parent c318260a71
commit 2544f51036
8 changed files with 108 additions and 4 deletions

View file

@ -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)