def get_root(self):
        if self.has_root():
            return True
        self.sudo_proxy = SudoProxy(self)
        self.sudo_proxy.start()
        if not self.sudo_proxy.has_root():
            raise OSError(None, "could not escalate to root privileges")
Attempt to gain root/administrator access by spawning helper app.
dataset/ETHPy150Open cloudmatrix/esky/esky/__init__.py/Esky.get_root