mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-14 07:22:36 +08:00
Don't display an error if there's no components directory
This commit is contained in:
parent
b234baee2c
commit
d8fdbb5168
@ -200,6 +200,8 @@ def LoadComponent(component_file):
|
|||||||
|
|
||||||
def load_components():
|
def load_components():
|
||||||
component_dir = os.path.join(comfy_path, "components")
|
component_dir = os.path.join(comfy_path, "components")
|
||||||
|
if not os.path.exists(component_dir):
|
||||||
|
return
|
||||||
files = [f for f in os.listdir(component_dir) if os.path.isfile(os.path.join(component_dir, f)) and f.endswith(".json")]
|
files = [f for f in os.listdir(component_dir) if os.path.isfile(os.path.join(component_dir, f)) and f.endswith(".json")]
|
||||||
for f in files:
|
for f in files:
|
||||||
print("Loading component file %s" % f)
|
print("Loading component file %s" % f)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user