def _get_entrypoint(lua, script):
    lua.execute(to_bytes(script))
    return lua.eval("main")
Execute a script and return its "main" function.
dataset/ETHPy150Open scrapinghub/splash/splash/lua.py/_get_entrypoint