(visible=True)
return False
Attempt to elevate the current script and quit the original if successful.
    Ignore if being debugged. Ideally this part needs to figure out when it is acceptable to elevate.
Attempt to elevate the current script and quit the original if successful.
    Ignore if being debugged. Ideally this part needs to figure out when it is acceptable to elevate.
Attempt to elevate the current script and quit the original if successful . Ignore if being debugged . Ideally this part needs to figure out when it is acceptable to elevate .
def elevate(visible=True):
    """Attempt to elevate the current script and quit the original if successful.
    Ignore if being debugged. Ideally this part needs to figure out when it is acceptable to elevate.
    """
    if is_elevated() or has_been_elevated() or sys.argv[0].endswith('visualstudio_py_launcher.py'):
        return True
    
    if _launch(visible=visible, add_arguments=[ELEVATE]):
        sys.exit(0)
    
    return False
def elevate ( visible = True ) : if is_elevated ( ) or has_been_elevated ( ) or sys . argv [ 0 ] . endswith ( 'visualstudio_py_launcher.py' ) : return True if _launch ( visible = visible , add_arguments = [ ELEVATE ] ) : sys . exit ( 0 ) return False