I am using arcpy.da.SearchCursor. I want to add a confirm dialog box in arcpy to proceed further. Can I apply this in arcpy?
I add something like this if I want to remind myself that I'm about to edit or overwrite critical data...
answer = input("Do you want to continue? (yes/no): ").lower()
if answer == "yes" or answer == "y":
print("Continuing...")
# Add your code here for further execution
else:
print("Exiting...")
sys.exit()
If this is a standalone script that is run manually, then the solution from @Tom_Laue should work. Another option to consider is a script tool or Python toolbox.
Thanks for the reply @BlakeTerhune,
I am using Python toolbox, in that I need a confirm dialog box in between running the script, is that possible?