Ejemplo n.º 1
0
def setup_agent():
    agent = Popen(["%s/agent-helper.py" % eca.dir()],
                  shell=False,
                  stdout=PIPE,
                  stdin=PIPE,
                  stderr=PIPE)
    return agent
Ejemplo n.º 2
0
def setup_agent(use_pin):
    if use_pin == True:
        cap = "KeyboardOnly"
    else:
        cap = "NoInputNoOutput"

    agent = Popen(["%s/agent-helper-bt.py" % eca.dir(), "-c", cap], shell=False, stdout=PIPE, stdin=PIPE, stderr=PIPE)
    return agent
Ejemplo n.º 3
0
def setup_agent(use_pin):
    del use_pin  # only allow NoInputNoOutput agents to simplify pairing
    # if use_pin is True:
    #     cap = "KeyboardOnly"
    # else:

    cap = "NoInputNoOutput"

    agent = Popen(["%s/agent-helper-bt.py" % eca.dir(), "-c", cap],
                  shell=False, stdout=PIPE, stdin=PIPE, stderr=PIPE)
    return agent
Ejemplo n.º 4
0
def setup_agent():
    agent = Popen(["%s/agent-helper.py" % eca.dir()], shell=False,
                  stdout=PIPE, stdin=PIPE, stderr=PIPE)
    return agent