parameters: (self)
docstring: If needed, rerun the program with administrative privileges.
  
      Raises NotAdministratorError if unable to rerun.
docstring_summary: If needed, rerun the program with administrative privileges.
docstring_tokens: If needed rerun the program with administrative privileges .
function: def rerun_as_administrator(self):
      """If needed, rerun the program with administrative privileges.
  
      Raises NotAdministratorError if unable to rerun.
      """
      import ctypes
      if not ctypes.windll.shell32.IsUserAnAdmin():
        raise NotAdministratorError('Rerun with administrator privileges.')
function_tokens: def rerun_as_administrator ( self ) : import ctypes if not ctypes . windll . shell32 . IsUserAnAdmin ( ) : raise NotAdministratorError ( 'Rerun with administrator privileges.' )