Commit 6a479f54 authored by Tim Peters's avatar Tim Peters

PEP 250: Add lib/site-packages to sys.path on Windows; also sys.prefix

to sys.path if os.sep == ':' (Macs?).  See PEP 250.
parent 9fe8828c
......@@ -141,10 +141,8 @@ for prefix in prefixes:
"python" + sys.version[:3],
"site-packages"),
os.path.join(prefix, "lib", "site-python")]
elif os.sep == ':':
sitedirs = [os.path.join(prefix, "lib", "site-packages")]
else:
sitedirs = [prefix]
sitedirs = [prefix, os.path.join(prefix, "lib", "site-packages")]
for sitedir in sitedirs:
if os.path.isdir(sitedir):
addsitedir(sitedir)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment