Skip to content
Snippets Groups Projects

Cloned AlphaFold 3 repo into this one

Merged Fortune Iriaye requested to merge clone-alphafold3-github into main
1 file
+ 5
4
Compare changes
  • Side-by-side
  • Inline
@@ -851,10 +851,11 @@ def package_template_features(
@@ -851,10 +851,11 @@ def package_template_features(
def _resolve_path(path: os.PathLike[str] | str) -> str:
def _resolve_path(path: os.PathLike[str] | str) -> str:
"""Resolves path for data dep paths, stringifies otherwise."""
"""Resolves path for data dep paths, stringifies otherwise."""
try:
# Data dependency paths: db baked into the binary.
# Data dependency paths: db baked into the binary.
resolved_path = resources.filename(path)
return resources.filename(path)
if os.path.exists(resolved_path):
except (FileNotFoundError, ValueError):
return resolved_path
 
else:
# Other paths, e.g. local.
# Other paths, e.g. local.
return str(path)
return str(path)
Loading