diff --git a/kindlecomicconverter/comic2ebook.py b/kindlecomicconverter/comic2ebook.py index 7f2e513..b844568 100755 --- a/kindlecomicconverter/comic2ebook.py +++ b/kindlecomicconverter/comic2ebook.py @@ -922,11 +922,8 @@ def getOutputFilename(srcpath, wantedname, ext, tomenumber): if wantedname is not None: if wantedname.endswith(ext): filename = os.path.abspath(wantedname) - elif os.path.isdir(srcpath): - filename = os.path.join(os.path.abspath(options.output), os.path.basename(srcpath) + ext) else: - filename = os.path.join(os.path.abspath(options.output), - os.path.basename(os.path.splitext(srcpath)[0]) + ext) + filename = os.path.abspath(wantedname) + ext elif os.path.isdir(srcpath): filename = srcpath + tomenumber + ext else: