I’m installing some custom nodes with the Manager, but I’m not sure if there are errors are not - is it possible to view the output of the terminal somewhere while installing nodes? I’d love to see if something is failing & more importantly why it’s failing…
Yeah, the problem seems to be related to my custom nodes where I’m trying to get the user directory in order to save custom settings…
I’m getting the error: No user directories found.
This is the code that looks for them:
def get_settings_file(self):
"""Get the settings file path for the default user"""
# Get the user manager
user_manager = PromptServer.instance.user_manager
# Get the users directory
users_dir = os.path.dirname(user_manager.get_users_file())
# Use the default user directory (usually the first one we find)
user_dirs = [
d
for d in os.listdir(users_dir)
if os.path.isdir(os.path.join(users_dir, d))
]
if not user_dirs:
raise ValueError("No user directories found")
# Get the settings file path
self.settings_file = os.path.join(
users_dir, user_dirs[0], "comfy.settings.json"
)
Is there a better way for custom nodes to get access to comfy.settings.json?
They work when running ComfyUI normally - just not with the Desktop version yet. I think it has to do with the timing of when the user directories are defined.
It looks like they’re defined after custom nodes are loaded… I wonder if they could be defined before?