import uos as os
import time


def countdown():
    for i in range(5, 0, -1):
        print("start stubbing in {}...".format(i))
        time.sleep(1)
    import createstubs

    # import stub_lvgl


try:
    # only run import if no stubs yet
    os.listdir("stubs")
    print("stub folder was found, stubbing is not automatically started")

except OSError:
    countdown()

[((16, 4, 16, 23), 'uos.listdir', 'os.listdir', ({(16, 15, 16, 22): '"""stubs"""'}, {}), "('stubs')", True, 'import uos as os\n'), ((8, 8, 8, 21), 'time.sleep', 'time.sleep', ({(8, 19, 8, 20): '(1)'}, {}), '(1)', False, 'import time\n')]