Showing Progress Bar

Himanshu Garg hgarg.india at gmail.com
Sat Nov 23 06:57:00 EST 2013


for i in range(10):
        sys.stdout.write(".")
        sys.stdout.flush()
        time.sleep(1)
    sys.stdout.write("\n") 

shutil.copytree("pack", "/lxc/pack")

But Here, the loop will first print the progress dots and then it will copy the directory.  But I want that these two tasks should run simultaneously.



More information about the Python-list mailing list