Beispiel #1
0
def start_hoplite_server(port_num):
    proc = psutil.Popen(
        '{} -c "import hoplite.main; hoplite.main.server_main([\'--port={}\'])"'
        .format(sys.executable, port_num),
        stdout=subprocess.PIPE,
        stderr=subprocess.STDOUT)
    wait_for_hoplite('localhost', port_num)
    return proc
def start_hoplite_server(port_num):
    proc = psutil.Popen(
        '{} -c "import hoplite.main; hoplite.main.server_main([\'--port={}\'])"'.format(sys.executable, port_num),
        stdout=subprocess.PIPE,
        stderr=subprocess.STDOUT
    )
    wait_for_hoplite('localhost', port_num)
    return proc
Beispiel #3
0
def start_hoplite_server(port_num):
    proc = psutil.Popen(
        '{} -c "import hoplite.main; hoplite.main.server_main([\'--port={}\'])"'.format(sys.executable, port_num)
    )
    wait_for_hoplite('localhost', port_num)
    return proc
Beispiel #4
0
def start_hoplite_server(port_num):
    proc = psutil.Popen(
        '{} -c "import hoplite.main; hoplite.main.server_main([\'--port={}\'])"'.format(sys.executable, port_num)
    )
    wait_for_hoplite('localhost', port_num)
    return proc