From 6d5ef3a511e2045f60f0cfa054517ee3e7b7a701 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Thu, 29 Aug 2024 23:45:16 +0200 Subject: [PATCH] Cleanup --- Examples/Link.py | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/Examples/Link.py b/Examples/Link.py index cfb4a1b..c61458e 100644 --- a/Examples/Link.py +++ b/Examples/Link.py @@ -28,20 +28,8 @@ def server(configpath): # We must first initialise Reticulum reticulum = RNS.Reticulum(configpath) - # Load identity from file if it exist or randomley create - if configpath: - ifilepath = "%s/storage/identitiesy/%s" % (configpath,APP_NAME) - else: - ifilepath = "%s/storage/identities/%s" % (RNS.Reticulum.configdir,APP_NAME) - RNS.log("ifilepath: %s" % ifilepath) - if os.path.exists(ifilepath): - # Load identity from file - server_identity = RNS.Identity.from_file(ifilepath) - RNS.log("loaded identity from file: "+ifilepath, RNS.LOG_VERBOSE) - else: - # Randomly create a new identity for our link example - server_identity = RNS.Identity() - RNS.log("created new identity", RNS.LOG_VERBOSE) + server_identity = RNS.Identity() + RNS.log("created new identity", RNS.LOG_VERBOSE) # We create a destination that clients can connect to. We # want clients to create links to this destination, so we