This commit is contained in:
Marc Beninca 2024-09-13 23:02:29 +02:00
parent b1970c1f78
commit 17b16ec9d0
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -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