def _reloader_loop():
    mtimes = {}
    while 1:
        for filename in _iter_module_files():
            try:
                mtime = os.stat(filename).st_mtime
            except __HOLE__:
                continue
            old_time = mtimes.get(filename)
            if old_time is None:
                mtimes[filename] = mtime
                continue
            elif mtime > old_time:
                print ' * Detected change, reloading'
                sys.exit(3)
        time.sleep(1)
dataset/ETHPy150Open fengsp/batpod/exts/serving.py/_reloader_loop