project/str

This commit is contained in:
Marc Beninca 2024-09-15 01:46:25 +02:00
parent 5038e587af
commit 304c2bc617
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -11,3 +11,11 @@ class Project:
self.file: Path = Path(file_path).resolve()
self.root: Path = self.file.parent
self.name: str = self.root.name
def __str__(self) -> str:
"""Return file, root & name."""
return f"""\
file = {self.file}
root = {self.root}
name = {self.name}
"""