]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix showstopper SF bug #442983: use of site.addsitedir() was broken
authorGuido van Rossum <guido@python.org>
Fri, 20 Jul 2001 14:55:28 +0000 (14:55 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 20 Jul 2001 14:55:28 +0000 (14:55 +0000)
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.)

Lib/site.py

index 5ad570e2792b33b13e8324777966b0eb52491e64..b4449526ea33fd1f13c7239cc8e2a2ac99e9a0e6 100644 (file)
@@ -149,7 +149,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.