def main(main_func, filepatterns=[], args=None, kwargs=None):
    if args is None:
        args = ()
    if kwargs is None:
        kwargs = {}
    if sys.platform.startswith('java'):
        reloader = jython_reloader
    else:
        reloader = python_reloader
    reloader(main_func, filepatterns, args, kwargs)
dataset/ETHPy150Open akheron/stango/stango/autoreload.py/main/original