QMod: expose paths
The pathlib path is only exposed to python
This commit is contained in:
parent
1061acbe6b
commit
cf8e77d844
1 changed files with 8 additions and 0 deletions
|
|
@ -28,6 +28,14 @@ class QMod(QObject):
|
|||
# Pass though all exceptions
|
||||
raise
|
||||
|
||||
@property
|
||||
def pathlib_path(self) -> Path:
|
||||
return self.__mod.path
|
||||
|
||||
@Property(str, constant=True)
|
||||
def path(self) -> str:
|
||||
return str(self.__mod.path)
|
||||
|
||||
@Property(str, constant=True)
|
||||
def name(self) -> str | None:
|
||||
return self.__mod.name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue