def python_reloader(main_func, filepatterns, args, kwargs):
    if os.environ.get("RUN_MAIN") == "true":
        _thread.start_new_thread(main_func, args, kwargs)
        try:
            reloader_thread(filepatterns)
        except __HOLE__:
            pass
    else:
        try:
            sys.exit(restart_with_reloader())
        except KeyboardInterrupt:
            pass
dataset/ETHPy150Open akheron/stango/stango/autoreload.py/python_reloader