From 1159e737a064cf719ed9af5c035a4918cc9f36e5 Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Sun, 2 Mar 2025 19:55:45 -0800 Subject: [PATCH] small correction to 7z (#847) --- kindlecomicconverter/comic2ebook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kindlecomicconverter/comic2ebook.py b/kindlecomicconverter/comic2ebook.py index 5b65a65..3931c9e 100755 --- a/kindlecomicconverter/comic2ebook.py +++ b/kindlecomicconverter/comic2ebook.py @@ -953,7 +953,7 @@ def makeZIP(zipfilename, basedir, isepub=False): mimetypeFile = open(os.path.join(basedir, 'mimetype'), 'w') mimetypeFile.write('application/epub+zip') mimetypeFile.close() - subprocess_run(['7z', 'a', '-tzip', zipfilename, basedir], capture_output=True, check=True) + subprocess_run(['7z', 'a', '-tzip', zipfilename, os.path.join(basedir, "*")], capture_output=True, check=True) else: zipOutput = ZipFile(zipfilename, 'w', ZIP_DEFLATED) if isepub: