Skip to content

Commit

Permalink
Add a helpful warning for links that don't point anywhere.
Browse files Browse the repository at this point in the history
  • Loading branch information
comfyanonymous committed Apr 17, 2024
1 parent 45ec1cb commit abc69ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion comfy_extras/nodes_canny.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#From https://github.com/kornia/kornia
import math

import torch
Expand Down
2 changes: 2 additions & 0 deletions folder_paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ def get_full_path(folder_name, filename):
full_path = os.path.join(x, filename)
if os.path.isfile(full_path):
return full_path
elif os.path.islink(full_path):
logging.warning("WARNING path {} exists but doesn't link anywhere, skipping.".format(full_path))

return None

Expand Down

0 comments on commit abc69ca

Please sign in to comment.