20 lines
450 B
Python
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
|