mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
parent
a045f191b4
commit
94f25283c9
20 changed files with 52 additions and 196 deletions
|
@ -91,15 +91,6 @@ def change_root(new_root, pathname):
|
|||
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)
|
||||
else:
|
||||
# Chop off volume name from start of path
|
||||
elements = pathname.split(":", 1)
|
||||
pathname = ":" + elements[1]
|
||||
return os.path.join(new_root, pathname)
|
||||
|
||||
else:
|
||||
raise DistutilsPlatformError("nothing known about "
|
||||
"platform '%s'" % os.name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue