mypy/prj
This commit is contained in:
parent
b1970c1f78
commit
17b16ec9d0
1 changed files with 2 additions and 3 deletions
|
@ -1,6 +1,5 @@
|
||||||
"""Handle projects."""
|
"""Handle projects."""
|
||||||
|
|
||||||
from os.path import realpath
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
|
|
||||||
|
@ -9,6 +8,6 @@ class Project:
|
||||||
|
|
||||||
def __init__(self, file_path: str) -> None:
|
def __init__(self, file_path: str) -> None:
|
||||||
"""Set file, root & name."""
|
"""Set file, root & name."""
|
||||||
self.file: str = realpath(file_path)
|
self.file: Path = Path(file_path).resolve()
|
||||||
self.root: str = Path(self.file).parent
|
self.root: Path = self.file.parent
|
||||||
self.name: str = self.root.name
|
self.name: str = self.root.name
|
||||||
|
|
Loading…
Reference in a new issue