mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-11 02:15:17 +00:00
Fix formatting.
This commit is contained in:
parent
96697c4bc5
commit
e1dec3c792
@ -26,9 +26,9 @@ class CustomNodeManager:
|
|||||||
workflow_name = os.path.splitext(os.path.basename(file))[0]
|
workflow_name = os.path.splitext(os.path.basename(file))[0]
|
||||||
workflow_templates_dict.setdefault(custom_nodes_name, []).append(workflow_name)
|
workflow_templates_dict.setdefault(custom_nodes_name, []).append(workflow_name)
|
||||||
return web.json_response(workflow_templates_dict)
|
return web.json_response(workflow_templates_dict)
|
||||||
|
|
||||||
# Serve workflow templates from custom nodes.
|
# Serve workflow templates from custom nodes.
|
||||||
for module_name, module_dir in loadedModules:
|
for module_name, module_dir in loadedModules:
|
||||||
workflows_dir = os.path.join(module_dir, 'example_workflows')
|
workflows_dir = os.path.join(module_dir, 'example_workflows')
|
||||||
if os.path.exists(workflows_dir):
|
if os.path.exists(workflows_dir):
|
||||||
webapp.add_routes([web.static('/api/workflow_templates/' + module_name, workflows_dir)])
|
webapp.add_routes([web.static('/api/workflow_templates/' + module_name, workflows_dir)])
|
||||||
|
Loading…
Reference in New Issue
Block a user