Skip to content

Commit

Permalink
skip .ipynb_checkpoints when scanning for files
Browse files Browse the repository at this point in the history
  • Loading branch information
gtfierro committed Jul 2, 2024
1 parent 1f14497 commit 95ba458
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions buildingmotif/dataclasses/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,9 @@ def _load_from_directory(

# read all .yml files
for file in directory.rglob("*.yml"):
# if .ipynb_checkpoints, skip; these are cached files that Jupyter creates
if ".ipynb_checkpoints" in file.parts:
continue
lib._read_yml_file(file, template_id_lookup, dependency_cache)
# now that we have all the templates, we can populate the dependencies
lib._resolve_template_dependencies(template_id_lookup, dependency_cache)
Expand Down

0 comments on commit 95ba458

Please sign in to comment.