🐛 minor fix

This commit is contained in:
sakamoto
2024-08-06 22:01:34 -05:00
parent 249595d66e
commit a638ad7d7a
+7 -2
View File
@@ -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):