Showing Progress Bar

Himanshu Garg hgarg.india at gmail.com
Sat Nov 23 06:36:28 EST 2013


I want to show simple dots while my program copies the files.  I have found the code like:

for i in range(10):
    print '.',
    time.sleep(1)

But this will execute ten times as it is predefined and the task to copy will execute after or before this loop based on the location I have placed my line to copy the files using shutil.copy().

I want that the files should be copied and in parallel the progress should be shown and when the files are copied, the progress should exit.



More information about the Python-list mailing list