From 4cfd3ce787968552fe4fcb732d64b9cb8fe29e65 Mon Sep 17 00:00:00 2001 From: XchanBik Date: Fri, 16 May 2025 00:10:43 +0200 Subject: [PATCH] Update Utils.py --- Utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Utils.py b/Utils.py index c5191c9..0368bd8 100644 --- a/Utils.py +++ b/Utils.py @@ -5,7 +5,9 @@ from comfy.cli_args import args # For your custom path logic if args.base_directory: user_base_path = os.path.abspath(args.base_directory) else: - user_base_path = os.path.dirname(os.path.realpath(__file__)) + # Go up 2 directories to reach ComfyUI root from custom_nodes/comfyui-SimpleTextNode + user_base_path = os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..")) + user_models_dir = os.path.join(user_base_path, "models") # Log the determined models_dir for easier debugging by the