def rerun_as_administrator(self):
    if os.geteuid() != 0:
      logging.warn('Rerunning with sudo: %s', sys.argv)
      os.execv('/usr/bin/sudo', ['--'] + sys.argv)
If needed, rerun the program with administrative privileges.
dataset/ETHPy150Open chromium/web-page-replay/platformsettings.py/_PosixPlatformSettings.rerun_as_administrator