mirror of
				https://github.com/sharkdp/bat.git
				synced 2025-11-04 09:01:56 +00:00 
			
		
		
		
	feat: include dotfiles (.) in create_highlighted_versions.py search
This commit is contained in:
		
				
					committed by
					
						
						David Peter
					
				
			
			
				
	
			
			
			
						parent
						
							c71c8980cf
						
					
				
				
					commit
					a3f037773a
				
			@@ -39,8 +39,9 @@ def get_options(source):
 | 
			
		||||
 | 
			
		||||
def create_highlighted_versions(output_basepath):
 | 
			
		||||
    root = os.path.dirname(os.path.abspath(__file__))
 | 
			
		||||
    sources = path.join(root, "source", "*")
 | 
			
		||||
 | 
			
		||||
    for source in glob.glob(path.join(root, "source", "*", "*")):
 | 
			
		||||
    for source in glob.glob(path.join(sources, "*")) + glob.glob(path.join(sources, ".*")):
 | 
			
		||||
        try:
 | 
			
		||||
            env = os.environ.copy()
 | 
			
		||||
            env.pop("PAGER", None)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user