connectors/PYRO/__init__.py
changeset 2493 0ad5e616d37f
parent 2492 7dd551ac2fa0
child 2536 2747d6e72eb8
equal deleted inserted replaced
2492:7dd551ac2fa0 2493:0ad5e616d37f
    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
    57         import connectors.PYRO.PSK_Adapter # pylint: disable=wrong-import-order,unused-import,wrong-import-position
    58         _unused_module_imported_for_monkey_patching_pylint_sucks = connectors.PYRO.PSK_Adapter
       
    59         schemename = "PYROLOCPSK"
    58         schemename = "PYROLOCPSK"
    60         url, ID = location.split('#')  # TODO fix exception when # not found
    59         url, ID = location.split('#')  # TODO fix exception when # not found
    61         # load PSK from project
    60         # load PSK from project
    62         secpath = os.path.join(str(confnodesroot.ProjectPath), 'psk', ID+'.secret')
    61         secpath = os.path.join(str(confnodesroot.ProjectPath), 'psk', ID+'.secret')
    63         if not os.path.exists(secpath):
    62         if not os.path.exists(secpath):