diff options
Diffstat (limited to 'Lib/site.py')
-rw-r--r-- | Lib/site.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/site.py b/Lib/site.py index bb329b4..b0d8268 100644 --- a/Lib/site.py +++ b/Lib/site.py @@ -326,6 +326,11 @@ def addsitepackages(known_paths, prefixes=None): """Add site-packages (and possibly site-python) to sys.path""" for sitedir in getsitepackages(prefixes): if os.path.isdir(sitedir): + if "site-python" in sitedir: + import warnings + warnings.warn('"site-python" directories will not be ' + 'supported in 3.5 anymore', + DeprecationWarning) addsitedir(sitedir, known_paths) return known_paths |