def do_over():
    '''Calls :py:func:`os.exec` with executable and args derived from sys.'''
    path = sys.executable
    args = [path] + sys.argv

    # And the rest, after a sudden wet thud, was silence.
    os.execv(path, args)
def do_over ( ) : path = sys . executable args = [ path ] + sys . argv os . execv ( path , args )
Calls :py:func:`os.exec` with executable and args derived from sys.