Endless loop on non Windows systems

Issue #17 closed
Gfy repo owner created an issue

what is wrong when this "Waiting 5 seconds for mount." happens?

looks for me like an endless loop until i kill it and start over

    if os.name != "nt":
        # wait until the DVD drive is mounted
        while not len(os.listdir(path)):
            print("Waiting 5 seconds for mount.")
            time.sleep(5)

It occurs when an empty directory is encountered?

https://bitbucket.org/Gfy/pyrescene/src/19df9aca5bb671fc2f893433f5fe94409c1a327e/bin/pyrescene.py#cl-309

Comments (3)

  1. Log in to comment