mirror of
				https://github.com/clearml/clearml
				synced 2025-06-26 18:16:07 +00:00 
			
		
		
		
	Fix import sys should not appear in pipeline component auto detected packages
This commit is contained in:
		
							parent
							
								
									96b89d76b8
								
							
						
					
					
						commit
						d131ff2a45
					
				@ -284,6 +284,11 @@ def is_std_or_local_lib(name):
 | 
			
		||||
    False if installed package
 | 
			
		||||
    str if local library
 | 
			
		||||
    """
 | 
			
		||||
 | 
			
		||||
    # check if one of the builtin modules first
 | 
			
		||||
    if name in sys.builtin_module_names:
 | 
			
		||||
        return True
 | 
			
		||||
 | 
			
		||||
    exist = True
 | 
			
		||||
    if six.PY2:
 | 
			
		||||
        import imp  # noqa
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user