예제 #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
파일: test_oi.py 프로젝트: janjaapbos/oi
 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
파일: programctl.py 프로젝트: richwu/oi
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()