mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 01:48:04 +03:00 
			
		
		
		
	Support mixed case model package names (#10223)
This commit is contained in:
		
							parent
							
								
									f939da0bfa
								
							
						
					
					
						commit
						a9ee5bff98
					
				| 
						 | 
				
			
			@ -871,7 +871,6 @@ def get_package_path(name: str) -> Path:
 | 
			
		|||
    name (str): Package name.
 | 
			
		||||
    RETURNS (Path): Path to installed package.
 | 
			
		||||
    """
 | 
			
		||||
    name = name.lower()  # use lowercase version to be safe
 | 
			
		||||
    # Here we're importing the module just to find it. This is worryingly
 | 
			
		||||
    # indirect, but it's otherwise very difficult to find the package.
 | 
			
		||||
    pkg = importlib.import_module(name)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user