Skip to content

Commit

Permalink
install: 🚧 handle symlink errors
Browse files Browse the repository at this point in the history
should fix #2
  • Loading branch information
melMass committed Jun 29, 2023
1 parent c3b9fd4 commit d982b69
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,12 @@ def load_nodes():
if web_mtb.exists():
log.debug(f"Web extensions folder found at {web_mtb}")
elif web_extensions_root.exists():
os.symlink((here / "web"), web_mtb.as_posix())
try:
os.symlink((here / "web"), web_mtb.as_posix())
except Exception: # OSError
log.error(
f"Failed to create symlink to {web_mtb}. Please copy the folder manually."
)
else:
log.error(
f"Comfy root probably not found automatically, please copy the folder {web_mtb} manually in the web/extensions folder of ComfyUI"
Expand Down

0 comments on commit d982b69

Please sign in to comment.