Restart the application the same way it was started

    :returns: None
    :rtype: None
    :raises: SystemExit

def restart():
    """Restart the application the same way it was started

    :returns: None
    :rtype: None
    :raises: SystemExit
    """
    python = sys.executable
    os.execl(python, python, * sys.argv)