core: simplify code
This commit is contained in:
@ -11,6 +11,9 @@ class Path():
|
||||
self._name: str = os.path.basename(self._absolute_path)
|
||||
self._dirpath: str = os.path.dirname(self._absolute_path)
|
||||
|
||||
def __str__(self) -> str:
|
||||
return self._name
|
||||
|
||||
def get_dirpath(self):
|
||||
return self._dirpath
|
||||
|
||||
|
Reference in New Issue
Block a user