Skip to content

Commit

Permalink
Use file name, not full path for cache
Browse files Browse the repository at this point in the history
  • Loading branch information
WyattBlue committed Jan 11, 2025
1 parent 4c5f55b commit 0a17a4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auto_editor/analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def iter_motion(

def obj_tag(path: Path, kind: str, tb: Fraction, obj: Sequence[object]) -> str:
mod_time = int(path.stat().st_mtime)
key = f"{path}:{mod_time:x}:{tb}:" + ",".join(f"{v}" for v in obj)
key = f"{path.name}:{mod_time:x}:{tb}:" + ",".join(f"{v}" for v in obj)
part1 = sha1(key.encode()).hexdigest()[:16]

return f"{part1}{kind}"
Expand Down

0 comments on commit 0a17a4d

Please sign in to comment.