pifacecommon/interrupts.py
def wait_until_file_exists(filename):
    """Wait until a file exists.

    :param filename: The name of the file to wait for.
    :type filename: string
    """
    start_time = time.time()
    time_limit = start_time + FILE_IO_TIMEOUT
    while time.time() < time_limit:
        try:
            with open(filename):
                return
        except IOError:
            pass

    raise Timeout("Waiting too long for %s." % filename)
def wait_until_file_exists(filename):
    start_time = time.time()
    time_limit = start_time + FILE_IO_TIMEOUT
    while time.time() < time_limit:
        try:
            with open(filename):
                return
        except IOError:
            pass

    raise Timeout("Waiting too long for %s." % filename)
def wait_until_file_exists ( filename ) : start_time = time . time ( ) time_limit = start_time + FILE_IO_TIMEOUT while time . time ( ) < time_limit : try : with open ( filename ) : return except IOError : pass raise Timeout ( "Waiting too long for %s." % filename )
Wait until a file exists.

    :param filename: The name of the file to wait for.
    :type filename: string
Wait until a file exists .