mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	Issue #23911: Move path-based bootstrap code to a separate frozen module.
This commit is contained in:
		
							parent
							
								
									6b4c63dea5
								
							
						
					
					
						commit
						32439d6eb6
					
				
					 27 changed files with 6192 additions and 5712 deletions
				
			
		| 
						 | 
				
			
			@ -98,8 +98,8 @@ def makepath(*paths):
 | 
			
		|||
def abs_paths():
 | 
			
		||||
    """Set all module __file__ and __cached__ attributes to an absolute path"""
 | 
			
		||||
    for m in set(sys.modules.values()):
 | 
			
		||||
        if (getattr(getattr(m, '__loader__', None), '__module__', None) !=
 | 
			
		||||
                '_frozen_importlib'):
 | 
			
		||||
        if (getattr(getattr(m, '__loader__', None), '__module__', None) not in
 | 
			
		||||
                ('_frozen_importlib', '_frozen_importlib_external')):
 | 
			
		||||
            continue   # don't mess with a PEP 302-supplied __file__
 | 
			
		||||
        try:
 | 
			
		||||
            m.__file__ = os.path.abspath(m.__file__)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue