mirror of
				https://github.com/devine-dl/devine.git
				synced 2025-11-03 19:34:49 +00:00 
			
		
		
		
	fix(WVD): Fix empty path to WVDs folder check
It seems a change in click made it so this is now just an empty tuple rather than a one-item tuple with Path("") resolved.
			
			
This commit is contained in:
		
							parent
							
								
									a053423d23
								
							
						
					
					
						commit
						117a1188cd
					
				@ -120,7 +120,7 @@ def dump(wvd_paths: list[Path], out_dir: Path) -> None:
 | 
				
			|||||||
    If the path is relative, with no file extension, it will dump the WVD in the WVDs
 | 
					    If the path is relative, with no file extension, it will dump the WVD in the WVDs
 | 
				
			||||||
    directory.
 | 
					    directory.
 | 
				
			||||||
    """
 | 
					    """
 | 
				
			||||||
    if wvd_paths == (Path(""),):
 | 
					    if wvd_paths == ():
 | 
				
			||||||
        wvd_paths = list(config.directories.wvds.iterdir())
 | 
					        wvd_paths = list(config.directories.wvds.iterdir())
 | 
				
			||||||
    for wvd_path, out_path in zip(wvd_paths, (out_dir / x.stem for x in wvd_paths)):
 | 
					    for wvd_path, out_path in zip(wvd_paths, (out_dir / x.stem for x in wvd_paths)):
 | 
				
			||||||
        try:
 | 
					        try:
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user