Commit abc69cab authored by comfyanonymous's avatar comfyanonymous
Browse files

Add a helpful warning for links that don't point anywhere.

parent 45ec1cbe
#From https://github.com/kornia/kornia
import math
import torch
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment