Пример #1
0
def main():
    ctl = oi.CtlProgram('ctl program', config.ctl_url)
    ctl.run()
Пример #2
0
def main():
    ctl = oi.CtlProgram('ctl program', 'ipc:///tmp/oi-random_string.sock')
    ctl.run()
Пример #3
0
def stop_function():
    ctl = oi.CtlProgram('ctl program', config.ctl_url)
    ctl.call('stop')
    ctl.client.close()
Пример #4
0
 def setUp(self):
     self.address = 'ipc:///tmp/test-programd.sock'
     self.p = oi.Program('programd', self.address)
     self.ctl = oi.CtlProgram('programctl', self.address)
Пример #5
0
def main():
    ctl = oi.CtlProgram('ctl program', 'ipc:///tmp/programd.sock')
    ctl.run()
Пример #6
0
def main():
    addr = sys.argv.pop(1)
    print('addr is: `{}`'.format(addr))
    ctl = oi.CtlProgram('ctl program', addr)
    ctl.run()