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):