Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
abc69cab
Commit
abc69cab
authored
Apr 17, 2024
by
comfyanonymous
Browse files
Add a helpful warning for links that don't point anywhere.
parent
45ec1cbe
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
comfy_extras/nodes_canny.py
comfy_extras/nodes_canny.py
+0
-1
folder_paths.py
folder_paths.py
+2
-0
No files found.
comfy_extras/nodes_canny.py
View file @
abc69cab
#From https://github.com/kornia/kornia
import
math
import
torch
...
...
folder_paths.py
View file @
abc69cab
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment