Skip to content

Commit d882d23

Browse files
committed
[Caspar] Skip directories when copying runtime files.
1 parent 0216418 commit d882d23

File tree

1 file changed

+2
-0
lines changed
  • symforce/experimental/caspar/code_generation

1 file changed

+2
-0
lines changed

symforce/experimental/caspar/code_generation/library.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ def generate_kernels(self, out_dir: Path) -> None:
180180
@staticmethod
181181
def generate_links(out_dir: Path, use_symlinks: bool = True) -> None:
182182
for f in Path(caspar.__file__).parent.glob("source/runtime/*"):
183+
if f.is_dir(): # Skip directories like __pycache__
184+
continue
183185
f_new = out_dir / f.name
184186
if use_symlinks:
185187
if f_new.exists():

0 commit comments

Comments
 (0)