mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
OS/2 patches by Andrew I MacIntyre for distutils.
Closes patch #435381.
This commit is contained in:
parent
c318260a71
commit
2544f51036
8 changed files with 108 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue