def main(): ctl = oi.CtlProgram('ctl program', config.ctl_url) ctl.run()
def main(): ctl = oi.CtlProgram('ctl program', 'ipc:///tmp/oi-random_string.sock') ctl.run()
def stop_function(): ctl = oi.CtlProgram('ctl program', config.ctl_url) ctl.call('stop') ctl.client.close()
def setUp(self): self.address = 'ipc:///tmp/test-programd.sock' self.p = oi.Program('programd', self.address) self.ctl = oi.CtlProgram('programctl', self.address)
def main(): ctl = oi.CtlProgram('ctl program', 'ipc:///tmp/programd.sock') ctl.run()
def main(): addr = sys.argv.pop(1) print('addr is: `{}`'.format(addr)) ctl = oi.CtlProgram('ctl program', addr) ctl.run()