equal
deleted
inserted
replaced
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): |