

def python_reloader(main_func, filepatterns, args, kwargs):
    if (os.environ.get('RUN_MAIN') == 'true'):
        _thread.start_new_thread(kwargs, args, kwargs)
        try:
            reloader_thread(filepatterns)
        except KeyboardInterrupt:
            pass
    else:
        try:
            sys.exit(restart_with_reloader())
        except KeyboardInterrupt:
            pass

dataset/ETHPy150Open akheron/stango/stango/autoreload.py python_reloader/VarMisuse@36/54 `main_func`->`kwargs`