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.""" """Handle projects."""
from os.path import realpath
from pathlib import Path from pathlib import Path
@ -9,6 +8,6 @@ class Project:
def __init__(self, file_path: str) -> None: def __init__(self, file_path: str) -> None:
"""Set file, root & name.""" """Set file, root & name."""
self.file: str = realpath(file_path) self.file: Path = Path(file_path).resolve()
self.root: str = Path(self.file).parent self.root: Path = self.file.parent
self.name: str = self.root.name self.name: str = self.root.name