mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
The ".pth" code knew about the layout of Python trees on unix and
windows, but not on the mac. Fixed.
This commit is contained in:
parent
fd0226b327
commit
d49056cd90
1 changed files with 2 additions and 0 deletions
|
@ -122,6 +122,8 @@ for prefix in prefixes:
|
|||
"python" + sys.version[:3],
|
||||
"site-packages"),
|
||||
makepath(prefix, "lib", "site-python")]
|
||||
elif os.sep == ':':
|
||||
sitedirs = [makepath(prefix, "lib", "site-packages")]
|
||||
else:
|
||||
sitedirs = [prefix]
|
||||
for sitedir in sitedirs:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue