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 )
This commit is contained in:
Daxton Caylor
2025-03-01 21:10:05 +05:30
committed by GitHub
parent 975e1a1fb4
commit e5a34b7494
+3 -2
View File
@@ -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"
WEB_DIRECTORY = "./web"