

def _reload():
    global _reload_attempted
    _reload_attempted = True
    for fn in _reload_hooks:
        fn()
    if hasattr(signal, 'setitimer'):
        signal.setitimer(signal.ITIMER_REAL, 0, 0)
    path_prefix = ('.' + os.pathsep)
    if ((sys.path[0] == '') and (not os.environ.get('PYTHONPATH', '').startswith(path_prefix))):
        os.environ['PYTHONPATH'] = (path_prefix + os.environ.get('PYTHONPATH', ''))
    if (sys.platform == 'win32'):
        subprocess.Popen(([sys.executable] + sys.argv))
        sys.exit(0)
    else:
        try:
            os.execv(sys.executable, ([sys.executable] + sys.argv))
        except OSError:
            os.spawnv(os.P_NOWAIT, sys.executable, ([sys.executable] + sys.argv))
            sys.exit(0)

dataset/ETHPy150Open D-L/SimpleBookMarks/src/tornado/autoreload.py _reload/original