rwx/rwx/prj/__init__.py
2024-06-10 10:04:54 +02:00

8 lines
234 B
Python

from os import path
class Project:
def __init__(self, file_path: str) -> None:
self.file: str = path.realpath(file_path)
self.root: str = path.dirname(self.file)
self.name: str = path.basename(self.root)