summaryrefslogtreecommitdiffstats
path: root/Lib/site.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-07-20 14:57:12 (GMT)
committerGuido van Rossum <guido@python.org>2001-07-20 14:57:12 (GMT)
commit27451d0fc8924bf2bd9750ff82fff169e3ee2308 (patch)
treed61645fb40d10ea1d63041fd861b43844870a36f /Lib/site.py
parent0825dc2427ce0666a392477b83badf51ff56acd2 (diff)
downloadcpython-27451d0fc8924bf2bd9750ff82fff169e3ee2308.zip
cpython-27451d0fc8924bf2bd9750ff82fff169e3ee2308.tar.gz
cpython-27451d0fc8924bf2bd9750ff82fff169e3ee2308.tar.bz2
Copying this 2.1.1 bugfix to the trunk:
Fix showstopper SF bug #442983: use of site.addsitedir() was broken because it references the global dirs_in_sys_path which is deleted. The fix avoids deleting that global. (My email through python.org or digicool.com is non-functional at the moment; use gvanrossum@home.com to reach me.)
Diffstat (limited to 'Lib/site.py')
-rw-r--r--Lib/site.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/Lib/site.py b/Lib/site.py
index 7848553..9dfe6ce 100644
--- a/Lib/site.py
+++ b/Lib/site.py
@@ -151,7 +151,6 @@ for prefix in prefixes:
if os.path.isdir(sitedir):
addsitedir(sitedir)
-del dirs_in_sys_path
# Define new built-ins 'quit' and 'exit'.
# These are simply strings that display a hint on how to exit.