From 9429bed91c184a85f6e4c0b4f7c01d785bba51fb Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Wed, 12 Nov 2025 11:46:33 -0800 Subject: [PATCH] fix -o in c2e (#1161) --- kindlecomicconverter/comic2ebook.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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: