mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-12-10 22:25:59 -05:00
Work on bundles
This commit is contained in:
parent
19257b5975
commit
90f2a84243
3 changed files with 121 additions and 8 deletions
|
|
@ -9,8 +9,6 @@ import os.path
|
|||
import os
|
||||
import RNS
|
||||
|
||||
#import traceback
|
||||
|
||||
class Reticulum:
|
||||
MTU = 500
|
||||
HEADER_MAXSIZE = 23
|
||||
|
|
@ -33,9 +31,10 @@ class Reticulum:
|
|||
if configdir != None:
|
||||
Reticulum.configdir = configdir
|
||||
|
||||
Reticulum.configpath = Reticulum.configdir+"/config"
|
||||
Reticulum.configpath = Reticulum.configdir+"/config"
|
||||
Reticulum.storagepath = Reticulum.configdir+"/storage"
|
||||
Reticulum.cachepath = Reticulum.configdir+"/storage/cache"
|
||||
Reticulum.cachepath = Reticulum.configdir+"/storage/cache"
|
||||
Reticulum.bundlepath = Reticulum.configdir+"/storage/bundles"
|
||||
|
||||
Reticulum.__allow_unencrypted = False
|
||||
Reticulum.__transport_enabled = False
|
||||
|
|
@ -54,6 +53,9 @@ class Reticulum:
|
|||
if not os.path.isdir(Reticulum.cachepath):
|
||||
os.makedirs(Reticulum.cachepath)
|
||||
|
||||
if not os.path.isdir(Reticulum.bundlepath):
|
||||
os.makedirs(Reticulum.bundlepath)
|
||||
|
||||
if os.path.isfile(self.configpath):
|
||||
try:
|
||||
self.config = ConfigObj(self.configpath)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue