mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +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],
|
"python" + sys.version[:3],
|
||||||
"site-packages"),
|
"site-packages"),
|
||||||
makepath(prefix, "lib", "site-python")]
|
makepath(prefix, "lib", "site-python")]
|
||||||
|
elif os.sep == ':':
|
||||||
|
sitedirs = [makepath(prefix, "lib", "site-packages")]
|
||||||
else:
|
else:
|
||||||
sitedirs = [prefix]
|
sitedirs = [prefix]
|
||||||
for sitedir in sitedirs:
|
for sitedir in sitedirs:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue