🐛 minor fix
This commit is contained in:
+7
-2
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user