Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55a8338 commit f585574Copy full SHA for f585574
1 file changed
Lib/distutils/util.py
@@ -100,7 +100,13 @@ def change_root (new_root, pathname):
100
return os.path.join (new_root, path)
101
102
elif os.name == 'mac':
103
- raise RuntimeError, "no clue how to do this on Mac OS"
+ if not os.path.isabs(pathname):
104
+ return os.path.join(new_root, pathname)
105
+ else:
106
+ # Chop off volume name from start of path
107
+ elements = string.split(pathname, ":", 1)
108
+ pathname = ":" + elements[1]
109
110
111
else:
112
raise DistutilsPlatformError, \
0 commit comments