rwx/rwx/prj/__init__.py
Marc Beninca 018f99c1d6
All checks were successful
/ job (push) Successful in 1m14s
object
2024-10-22 18:33:35 +02:00

20 lines
450 B
Python

"""Handle projects."""
from pathlib import Path
from rwx import Object
class Project(Object):
"""Parent class for any type of project."""
def __init__(self, file: Path) -> None:
"""Set file, root & name.
:param file: root reference file
:type file: Path
"""
self.raw = file
self.file = self.raw.resolve()
self.root: Path = self.file.parent
self.name: str = self.root.name