Move the modules rank_todo.py shares into bin/file_io/, inside reload's fingerprint
This commit is contained in:
@@ -8,6 +8,7 @@ import typing
|
||||
from loop_claude.effects import Effects
|
||||
from loop_claude.stop import Stop
|
||||
|
||||
PACKAGES = ("file_io", "loop_claude")
|
||||
RELOAD_FLAG = "--reloaded"
|
||||
T = typing.TypeVar("T")
|
||||
|
||||
@@ -36,7 +37,7 @@ def decode_handed(handed: str, kind: type[T]) -> T | None:
|
||||
|
||||
def fingerprint(launcher: pathlib.Path) -> str:
|
||||
digest = hashlib.sha256()
|
||||
for path in [launcher, *sorted((launcher.parent / "loop_claude").rglob("*.py"))]:
|
||||
for path in [launcher, *sorted(path for package in PACKAGES for path in (launcher.parent / package).rglob("*.py"))]:
|
||||
try:
|
||||
content = path.read_bytes()
|
||||
except OSError as failure:
|
||||
|
||||
Reference in New Issue
Block a user