QMod: expose paths

The pathlib path is only exposed to python
This commit is contained in:
Toast 2025-06-06 03:05:38 +02:00 committed by Toast
parent 1061acbe6b
commit cf8e77d844

View file

@ -28,6 +28,14 @@ class QMod(QObject):
# Pass though all exceptions # Pass though all exceptions
raise 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) @Property(str, constant=True)
def name(self) -> str | None: def name(self) -> str | None:
return self.__mod.name return self.__mod.name