From 304c2bc617b49e8fc466e212f323cf5e2fbd42b3 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 15 Sep 2024 01:46:25 +0200 Subject: [PATCH] project/str --- rwx/prj/__init__.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rwx/prj/__init__.py b/rwx/prj/__init__.py index 36dab99..04f1cd9 100644 --- a/rwx/prj/__init__.py +++ b/rwx/prj/__init__.py @@ -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} +"""