I have a startup script that checks for valid IPs in a dataset and closes the application if "access is denied." I've got an error box via system.gui.errorBox() to alert the user, but I want this box to stay on the screen for a time (or until the user closes it) before exiting the application via system.util.exit().
I've tried
from time import sleep
time.sleep(3)
between the errorBox and exit calls, but I always get a global name "time" not defined error
Well, your script isn't working right now because you're saying from time import sleep and then attempting to call time.sleep. If you want to call it as time.sleep, then just import time. If you're using from time import sleep, then you should just call it as sleep(3).