From 49c8ada4780fba9fb1034534054ca7e7e31be46c Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Sun, 22 May 2022 19:09:16 +0200 Subject: [PATCH] Added standard identity storage folder --- RNS/Reticulum.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/RNS/Reticulum.py b/RNS/Reticulum.py index adc5db1..88e2709 100755 --- a/RNS/Reticulum.py +++ b/RNS/Reticulum.py @@ -181,6 +181,7 @@ class Reticulum: Reticulum.storagepath = Reticulum.configdir+"/storage" Reticulum.cachepath = Reticulum.configdir+"/storage/cache" Reticulum.resourcepath = Reticulum.configdir+"/storage/resources" + Reticulum.identitypath = Reticulum.configdir+"/storage/identities" Reticulum.__transport_enabled = False Reticulum.__use_implicit_proof = True @@ -216,6 +217,9 @@ class Reticulum: if not os.path.isdir(Reticulum.resourcepath): os.makedirs(Reticulum.resourcepath) + if not os.path.isdir(Reticulum.identitypath): + os.makedirs(Reticulum.identitypath) + if os.path.isfile(self.configpath): try: self.config = ConfigObj(self.configpath)