diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-07-12 05:20:13 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-07-12 05:20:13 (GMT) |
commit | 6a479f548850f5ccf941eb74f855d6b2dc91368f (patch) | |
tree | cedebba5035193f2fe27e72310337fb856986ce9 /Lib/site.py | |
parent | 9fe8828cbf02f3ae6cab8173c3a84ee7d441a4fe (diff) | |
download | cpython-6a479f548850f5ccf941eb74f855d6b2dc91368f.zip cpython-6a479f548850f5ccf941eb74f855d6b2dc91368f.tar.gz cpython-6a479f548850f5ccf941eb74f855d6b2dc91368f.tar.bz2 |
PEP 250: Add lib/site-packages to sys.path on Windows; also sys.prefix
to sys.path if os.sep == ':' (Macs?). See PEP 250.
Diffstat (limited to 'Lib/site.py')
-rw-r--r-- | Lib/site.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/site.py b/Lib/site.py index 5d2e9ed..16540f6 100644 --- a/Lib/site.py +++ b/Lib/site.py @@ -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) |