project/str
This commit is contained in:
parent
5038e587af
commit
304c2bc617
1 changed files with 8 additions and 0 deletions
|
@ -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}
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue