]> granicus.if.org Git - python/commitdiff
Copying this 2.1.1 bugfix to the trunk:
authorGuido van Rossum <guido@python.org>
Fri, 20 Jul 2001 14:57:12 +0000 (14:57 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 20 Jul 2001 14:57:12 +0000 (14:57 +0000)
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.)

Lib/site.py

index 7848553122f3866ac79a6cba27f40df9e508d6f9..9dfe6ce2c79a4101597f4c3430907480d9753740 100644 (file)
@@ -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.