Pause a script before termination
Philip Semanchuk
philip at semanchuk.com
Wed Nov 11 11:58:58 EST 2009
On Nov 11, 2009, at 11:47 AM, noydb wrote:
> On Nov 11, 11:43 am, noydb <jenn.du... at gmail.com> wrote:
>> Hi All,
>>
>> I want to pause my script before it terminates, just so a user can
>> have a moment to read some print statements I include at the end.
>> How
>> can this be accomplished?
>>
>> Thanks!
>
> Never mind, duh, found my answer now
>
> import time
> time.sleep(10) #10 second pause
Good for you for tracking that down.
However, might I suggest that you replace that with a message like
"Press <Enter> to clear this message and end the program"?
More information about the Python-list
mailing list