

def run_startup_hooks():
    if ((len(sys.argv) > 1) and (sys.argv[1] == '--esky-spawn-sudo')):
        if (sys.version_info[0] > 2):
            proxy = b64unpickle(sys.argv[2])
            pipe = b64unpickle(sys.argv[3])
        else:
            proxy = pickle.loads(b64decode(sys.argv[2]))
            pipe = pickle.loads(b64decode(sys.argv[3]))
        os.write(1, struct.pack('I', os.getpid()))
        proxy.run(pipe)
        sys.exit(0)

dataset/ETHPy150Open cloudmatrix/esky/esky/sudo/sudo_osx.py run_startup_hooks/original