Forums

sys.stdout.write("\r" + ... as download indicator

I use the above to have a download indicator following the receipt here:

http://stackoverflow.com/questions/51212/how-to-write-a-download-progress-indicator-in-python

It works great when fired from a console, but exactly the same never finishes as a scheduled task. Is there a better method? Or how can I detect what called the script to disable the indicator if needed?

You could just pass a command line parameter in.

THX, looks like I've missed an update.