lint/prj
This commit is contained in:
parent
8c896c9074
commit
88311cb55c
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue