Commit e7168d04 authored by Robin Obůrka's avatar Robin Obůrka

networking: Add dirty hack that make testing of SN possible

parent 17e308ad
......@@ -34,16 +34,16 @@ class SN:
an API-like interface for requesting ZMQ sockets based on available
def __init__(self, ctx, argparser=None):
def __init__(self, ctx, argparser=None, **options):
""" Gets a list of command line arguments - each for one socket
connection and creates a dict of ZMQ socket configs.
self.context = ctx
self.sock_configs = dict()
if argparser:
self.args = argparser.parse_args()
self.args = argparser.parse_args(options["args"] if "args" in options else None)
self.args = get_arg_parser().parse_args()
self.args = get_arg_parser().parse_args(options["args"] if "args" in options else None)
res_avail = resource_parser(self.args.resource)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment