Skip to content

Commit

Permalink
Modified exitProgram() to not require two layers of input just to exit.
Browse files Browse the repository at this point in the history
theRealBassist committed Apr 11, 2024
1 parent 9f66ede commit c74a1d3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions MetadataToUTMv2.py
Original file line number Diff line number Diff line change
@@ -317,10 +317,9 @@ def exportData(folder, data, kml = False):
outputFile.write(data.csv)

def exitProgram():
exitInput = input("If you would like to convert more images, please enter `yes`.")
mainMenu() if exitInput == "yes" or exitInput == "Yes" else ""
while True:
exitInput = input("Press `Enter` to exit...")
quit()
print("Would you like to convert more images?")
exitInput = input("[Y]es or [N]o: ")
if exitInput == "Y" or exitInput == "y" : mainMenu()
else : quit()

mainMenu()

0 comments on commit c74a1d3

Please sign in to comment.