mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	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.)
This commit is contained in:
		
							parent
							
								
									0825dc2427
								
							
						
					
					
						commit
						27451d0fc8
					
				
					 1 changed files with 0 additions and 1 deletions
				
			
		| 
						 | 
					@ -151,7 +151,6 @@ def addpackage(sitedir, name):
 | 
				
			||||||
            if os.path.isdir(sitedir):
 | 
					            if os.path.isdir(sitedir):
 | 
				
			||||||
                addsitedir(sitedir)
 | 
					                addsitedir(sitedir)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
del dirs_in_sys_path
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Define new built-ins 'quit' and 'exit'.
 | 
					# Define new built-ins 'quit' and 'exit'.
 | 
				
			||||||
# These are simply strings that display a hint on how to exit.
 | 
					# These are simply strings that display a hint on how to exit.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue