7 lines
313 B
Python
7 lines
313 B
Python
import pathlib
|
|
|
|
|
|
def project_key(checkout_root: str, home: pathlib.Path) -> str:
|
|
"""The checkout's path relative to ~/code, or to / outside it: what names a project's loop-claude session, its entry in the models file and its archive folder."""
|
|
return checkout_root.removeprefix(f"{home / 'code'}/").lstrip("/")
|