mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-04 20:23:38 +02:00
Fix #779322 (ebook-convert can't output to "../filename.epub")
This commit is contained in:
parent
2760116d3d
commit
c49c187cb6
1 changed files with 2 additions and 1 deletions
|
|
@ -68,7 +68,8 @@ def check_command_line_options(parser, args, log):
|
|||
raise SystemExit(1)
|
||||
|
||||
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.abspath(output)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue