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:
+3
-2
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user