Use local cache dir

This commit is contained in:
Mark Qvist 2026-09-10 18:16:39 +02:00
parent 8d4daed978
commit 0b3f96e06a
No known key found for this signature in database
2 changed files with 11 additions and 7 deletions

View file

@ -113,7 +113,8 @@ class NomadNetworkApp:
self.identitypath = self.configdir+"/storage/identity"
self.cachepath = self.configdir+"/storage/cache"
self.imagecachepath = self.configdir+"/storage/cache/images"
self.convcachepath = self.configdir+"/storage/cache/images/converted"
self.convcachepath = self.configdir+"/storage/cache/images/converted_node"
self.dispcachepath = self.configdir+"/storage/cache/images/converted_disp"
self.resourcepath = self.configdir+"/storage/resources"
self.conversationpath = self.configdir+"/storage/conversations"
self.directorypath = self.configdir+"/storage/directory"
@ -183,6 +184,9 @@ class NomadNetworkApp:
if not os.path.isdir(self.convcachepath):
os.makedirs(self.convcachepath)
if not os.path.isdir(self.dispcachepath):
os.makedirs(self.dispcachepath)
if not os.path.isdir(self.resourcepath):
os.makedirs(self.resourcepath)