This commit is contained in:
Marc Beninca 2024-09-13 16:50:20 +02:00
parent 8c896c9074
commit 88311cb55c
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -1,8 +1,13 @@
"""Handle projects."""
from os import path from os import path
class Project: class Project:
"""Parent class for any type of project."""
def __init__(self, file_path: str) -> None: def __init__(self, file_path: str) -> None:
"""Set file, root & name."""
self.file: str = path.realpath(file_path) self.file: str = path.realpath(file_path)
self.root: str = path.dirname(self.file) self.root: str = path.dirname(self.file)
self.name: str = path.basename(self.root) self.name: str = path.basename(self.root)