equal
deleted
inserted
replaced
37 # import module according to uri type |
37 # import module according to uri type |
38 connectormodule = getattr(__import__("connectors."+servicetype), servicetype) |
38 connectormodule = getattr(__import__("connectors."+servicetype), servicetype) |
39 factoryname = servicetype + "_connector_factory" |
39 factoryname = servicetype + "_connector_factory" |
40 return getattr(connectormodule, factoryname)(uri, pluginsroot) |
40 return getattr(connectormodule, factoryname)(uri, pluginsroot) |
41 elif servicetype == "LOCAL": |
41 elif servicetype == "LOCAL": |
|
42 #handle incompatibility with tray icon and svgui... |
|
43 no_poisoned_plugin = pluginsroot.GetChildByType("svgui") is None |
|
44 runtime_port = pluginsroot.AppFrame.StartLocalRuntime(taskbaricon = no_poisoned_plugin) |
42 import PYRO |
45 import PYRO |
43 return PYRO.PYRO_connector_factory( |
46 return PYRO.PYRO_connector_factory( |
44 "PYRO://127.0.0.1:"+str(pluginsroot.runtime_port), |
47 "PYRO://127.0.0.1:"+str(runtime_port), |
45 pluginsroot) |
48 pluginsroot) |
46 else : |
49 else : |
47 return None |
50 return None |
48 |
51 |