diff --git a/main.py b/main.py index c553c42..3059188 100644 --- a/main.py +++ b/main.py @@ -40,7 +40,7 @@ while mainCategory == "": mainCategory = "" if mainCategory == "": - #Not best way to do this, but it's a small script, so idc :shrug: + # Loop until a valid input is received. os.system("clear") print("Invalid input, please try again:") @@ -57,7 +57,7 @@ while subCategory == "": subCategory = "" if subCategory == "": - #Not best way to do this, but it's a small script, so idc :shrug: + os.system("clear") print("Invalid input, please try again:") @@ -72,12 +72,12 @@ while numberOfPages <= 0: numberOfPages = -1 if numberOfPages <= 0: - #Not best way to do this, but it's a small script, so idc :shrug: + os.system("clear") print("Invalid input, please try again:") -#The inputs have passed validation - onto the fun part :) +# Start putitng together the final command. finalCommand = "" @@ -146,7 +146,7 @@ while numberOfPages > curPage: os.system("rm *.jpg") - # Grumble grumble, file locking, grumble grumble... + os.system("mv \"" + documentName + "-work.pdf\" " + "\"" + documentName + ".pdf" + "\"")