Пример #1
0
def start_client(grid, slurl, build_config, my_args):
    login_url = "https://login.%s.lindenlab.com/cgi-bin/login.cgi" % (grid)

    viewer_args = {"--grid": grid, "--loginuri": login_url}
    viewer_args.update(my_args)
    # *sigh*  We must put --url at the end of the argument list.
    if viewer_args.has_key("--url"):
        slurl = viewer_args["--url"]
        del (viewer_args["--url"])
    viewer_args = llstart.get_args_from_dict(viewer_args)
    if slurl is not None:
        viewer_args += " --url %s" % slurl

    # Figure out path stuff.
    # The client should run from indra/newview
    # but the exe is at indra/build-<xxx>/newview/<target>
    build_path = os.path.dirname(os.getcwd())
    f = open("start-client.log", "w")
    print >> f, "Viewer startup arguments:"
    llstart.start(
        "viewer", "../../newview", "%s/newview/%s/secondlife-bin.exe" % (build_path, build_config), viewer_args, f
    )
    f.close()
Пример #2
0
def start_client(grid, slurl, build_config, my_args):
    login_url = "https://login.%s.lindenlab.com/cgi-bin/login.cgi" % (grid)

    viewer_args = {"--grid": grid, "--loginuri": login_url}
    viewer_args.update(my_args)
    # *sigh*  We must put --url at the end of the argument list.
    if viewer_args.has_key("--url"):
        slurl = viewer_args["--url"]
        del (viewer_args["--url"])
    viewer_args = llstart.get_args_from_dict(viewer_args)
    if slurl is not None:
        viewer_args += " --url %s" % slurl

    # Figure out path stuff.
    # The client should run from indra/newview
    # but the exe is at indra/build-<xxx>/newview/<target>
    build_path = os.path.dirname(os.getcwd())
    f = open("start-client.log", "w")
    print >> f, "Viewer startup arguments:"
    llstart.start("viewer", "../../newview",
                  "%s/newview/%s/meerkat-bin.exe" % (build_path, build_config),
                  viewer_args, f)
    f.close()