connectors/PYRO/__init__.py
changeset 2314 e927c101ce6d
parent 2313 2eaf235270f8
child 2324 1cf3768ebf85
equal deleted inserted replaced
2313:2eaf235270f8 2314:e927c101ce6d
    51     confnodesroot.logger.write(_("PYRO connecting to URI : %s\n") % uri)
    51     confnodesroot.logger.write(_("PYRO connecting to URI : %s\n") % uri)
    52 
    52 
    53     servicetype, location = uri.split("://")
    53     servicetype, location = uri.split("://")
    54     if servicetype == "PYROS":
    54     if servicetype == "PYROS":
    55         import connectors.PYRO.PSK_Adapter
    55         import connectors.PYRO.PSK_Adapter
    56         schemename = "PYROPSK"
    56         schemename = "PYROLOCPSK"
    57         url, ID = location.split('#')
    57         url, ID = location.split('#')
    58         # load PSK from project
    58         # load PSK from project
    59         secpath = os.path.join(str(confnodesroot.ProjectPath), 'psk', ID+'.secret')
    59         secpath = os.path.join(str(confnodesroot.ProjectPath), 'psk', ID+'.secret')
    60         if not os.path.exists(secpath):
    60         if not os.path.exists(secpath):
    61             confnodesroot.logger.write_error(
    61             confnodesroot.logger.write_error(