connectors/PYRO/__init__.py
changeset 2537 eb4a4cc41914
parent 2536 2747d6e72eb8
child 2538 2b75389575df
equal deleted inserted replaced
2536:2747d6e72eb8 2537:eb4a4cc41914
    52     """
    52     """
    53     confnodesroot.logger.write(_("PYRO connecting to URI : %s\n") % uri)
    53     confnodesroot.logger.write(_("PYRO connecting to URI : %s\n") % uri)
    54 
    54 
    55     scheme, location = uri.split("://")
    55     scheme, location = uri.split("://")
    56     if scheme == "PYROS":
    56     if scheme == "PYROS":
    57         import connectors.PYRO.PSK_Adapter # pylint: disable=wrong-import-order,unused-import,wrong-import-position
    57         import connectors.PYRO.PSK_Adapter  # pylint: disable=wrong-import-order,unused-import,wrong-import-position
    58         schemename = "PYROLOCPSK"
    58         schemename = "PYROLOCPSK"
    59         url, ID = location.split('#')  # TODO fix exception when # not found
    59         url, ID = location.split('#')  # TODO fix exception when # not found
    60         # load PSK from project
    60         # load PSK from project
    61         secpath = os.path.join(str(confnodesroot.ProjectPath), 'psk', ID+'.secret')
    61         secpath = os.path.join(str(confnodesroot.ProjectPath), 'psk', ID+'.secret')
    62         if not os.path.exists(secpath):
    62         if not os.path.exists(secpath):