From a638ad7d7a4267699475406e26ba7dd2cf9de85c Mon Sep 17 00:00:00 2001 From: sakamoto Date: Tue, 6 Aug 2024 22:01:34 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20minor=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- comic2pdf.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/comic2pdf.py b/comic2pdf.py index dc7ba2a..b174c91 100755 --- a/comic2pdf.py +++ b/comic2pdf.py @@ -33,6 +33,8 @@ dest = args.dest delete_old = args.delete_old trash_old = args.trash_old +print(f"The source file is: {args.source}") +print(f"The destination file is: {args.dest}") class Comic2PDF: def __init__(self, src, dest): @@ -48,7 +50,8 @@ class Comic2PDF: def check_src(self, src, dest): if (src is None and dest is None) or (src is None and dest is not None): - src = os.path.realpath(__file__) + # src = os.path.realpath(__file__) + src = os.getcwd() src = os.path.dirname(src) return src else: @@ -56,7 +59,8 @@ class Comic2PDF: def check_dest(self, src, dest): if dest is None and src is None: - dest = os.path.realpath(__file__) + # dest = os.path.realpath(__file__) + dest = os.getcwd() dest = os.path.dirname(dest) return dest elif dest is None and src is not None: @@ -122,6 +126,7 @@ class Comic2PDF: pass break + # exported from the internet; # sorts folder name to human order def atoi(text):