equal
deleted
inserted
replaced
25 |
25 |
26 |
26 |
27 _base_path = path.split(__file__)[0] |
27 _base_path = path.split(__file__)[0] |
28 |
28 |
29 |
29 |
30 # a dict from a DNS-SD service type to a connector module that support it |
|
31 dnssd_connectors = {"_PYRO._tcp.local.":"PYRO"} |
|
32 |
|
33 def _GetLocalConnectorClassFactory(name): |
30 def _GetLocalConnectorClassFactory(name): |
34 return lambda:getattr(__import__(name,globals(),locals()), name + "_connector_factory") |
31 return lambda:getattr(__import__(name,globals(),locals()), name + "_connector_factory") |
35 |
32 |
36 connectors = {name:_GetLocalConnectorClassFactory(name) |
33 connectors = {name:_GetLocalConnectorClassFactory(name) |
37 for name in listdir(_base_path) |
34 for name in listdir(_base_path) |