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."""
|
||||
|
||||
from os.path import realpath
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
|
@ -9,6 +8,6 @@ class Project:
|
|||
|
||||
def __init__(self, file_path: str) -> None:
|
||||
"""Set file, root & name."""
|
||||
self.file: str = realpath(file_path)
|
||||
self.root: str = Path(self.file).parent
|
||||
self.file: Path = Path(file_path).resolve()
|
||||
self.root: Path = self.file.parent
|
||||
self.name: str = self.root.name
|
||||
|
|
Loading…
Reference in a new issue