mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-10-30 18:22:25 -04:00 
			
		
		
		
	Fix #779322 (ebook-convert can't output to "../filename.epub")
This commit is contained in:
		
							parent
							
								
									2760116d3d
								
							
						
					
					
						commit
						c49c187cb6
					
				| @ -68,7 +68,8 @@ def check_command_line_options(parser, args, log): | |||||||
|         raise SystemExit(1) |         raise SystemExit(1) | ||||||
| 
 | 
 | ||||||
|     output = args[2] |     output = args[2] | ||||||
|     if output.startswith('.') and output != '.': |     if output.startswith('.') and (output != '.' and not | ||||||
|  |             output.startswith('..')): | ||||||
|         output = os.path.splitext(os.path.basename(input))[0]+output |         output = os.path.splitext(os.path.basename(input))[0]+output | ||||||
|     output = os.path.abspath(output) |     output = os.path.abspath(output) | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user