From 17b16ec9d041fe2bafb60651b57aed92928fdab8 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Fri, 13 Sep 2024 23:02:29 +0200 Subject: [PATCH] mypy/prj --- rwx/prj/__init__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/rwx/prj/__init__.py b/rwx/prj/__init__.py index 8b70a4a..36dab99 100644 --- a/rwx/prj/__init__.py +++ b/rwx/prj/__init__.py @@ -1,6 +1,5 @@ """Handle projects.""" -from os.path import realpath from pathlib import Path @@ -9,6 +8,6 @@ class Project: def __init__(self, file_path: str) -> None: """Set file, root & name.""" - self.file: str = realpath(file_path) - self.root: str = Path(self.file).parent + self.file: Path = Path(file_path).resolve() + self.root: Path = self.file.parent self.name: str = self.root.name