Trimmed comments.
This commit is contained in:
parent
71c5ad5e01
commit
1c082a226a
10
main.py
10
main.py
@ -40,7 +40,7 @@ while mainCategory == "":
|
|||||||
mainCategory = ""
|
mainCategory = ""
|
||||||
|
|
||||||
if 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")
|
os.system("clear")
|
||||||
print("Invalid input, please try again:")
|
print("Invalid input, please try again:")
|
||||||
|
|
||||||
@ -57,7 +57,7 @@ while subCategory == "":
|
|||||||
subCategory = ""
|
subCategory = ""
|
||||||
|
|
||||||
if subCategory == "":
|
if subCategory == "":
|
||||||
#Not best way to do this, but it's a small script, so idc :shrug:
|
|
||||||
os.system("clear")
|
os.system("clear")
|
||||||
print("Invalid input, please try again:")
|
print("Invalid input, please try again:")
|
||||||
|
|
||||||
@ -72,12 +72,12 @@ while numberOfPages <= 0:
|
|||||||
numberOfPages = -1
|
numberOfPages = -1
|
||||||
|
|
||||||
if numberOfPages <= 0:
|
if numberOfPages <= 0:
|
||||||
#Not best way to do this, but it's a small script, so idc :shrug:
|
|
||||||
os.system("clear")
|
os.system("clear")
|
||||||
print("Invalid input, please try again:")
|
print("Invalid input, please try again:")
|
||||||
|
|
||||||
|
|
||||||
#The inputs have passed validation - onto the fun part :)
|
# Start putitng together the final command.
|
||||||
|
|
||||||
finalCommand = ""
|
finalCommand = ""
|
||||||
|
|
||||||
@ -146,7 +146,7 @@ while numberOfPages > curPage:
|
|||||||
|
|
||||||
os.system("rm *.jpg")
|
os.system("rm *.jpg")
|
||||||
|
|
||||||
# Grumble grumble, file locking, grumble grumble...
|
|
||||||
|
|
||||||
os.system("mv \"" + documentName + "-work.pdf\" " + "\"" + documentName + ".pdf" + "\"")
|
os.system("mv \"" + documentName + "-work.pdf\" " + "\"" + documentName + ".pdf" + "\"")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user