From e5a34b749466095b9811db3127a33e9617799fea Mon Sep 17 00:00:00 2001 From: Daxton Caylor <164315771+daxcay@users.noreply.github.com> Date: Sat, 1 Mar 2025 21:10:05 +0530 Subject: [PATCH] Update __init__.py shifted nexus settings folder base path's to comfy root folder (might fix write permissions on new ways of deploying of comfy on servers ) --- __init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/__init__.py b/__init__.py index 1577abb..a26d61e 100644 --- a/__init__.py +++ b/__init__.py @@ -7,10 +7,11 @@ import time import uuid from aiohttp import web from server import PromptServer +import folder_paths from .classes.WebSocketManager import WebSocketManager -DATA_FOLDER = './nexus' +DATA_FOLDER = f"{folder_paths.base_path}/nexus" PERMISSIONS_FILE = os.path.join(DATA_FOLDER, 'permissions.json') ADMINS_FILE = os.path.join(DATA_FOLDER, 'admins.json') @@ -465,4 +466,4 @@ if hasattr(PromptServer, 'instance'): NODE_CLASS_MAPPINGS = {} NODE_DISPLAY_NAME_MAPPINGS = {} -WEB_DIRECTORY = "./web" \ No newline at end of file +WEB_DIRECTORY = "./web"