Add home path getter to config

This commit is contained in:
Veronica Berglyd Olsen
2024-04-13 00:12:43 +02:00
parent 95d91562ec
commit 4b5383f1c7
2 changed files with 7 additions and 0 deletions
+4
View File
@@ -390,6 +390,10 @@ class Config:
"""Un-scale fixed gui sizes by the screen scale factor."""
return int(value/self.guiScale)
def homePath(self) -> Path:
"""The user's home folder."""
return self._homePath
def dataPath(self, target: str | None = None) -> Path:
"""Return a path in the data folder."""
if isinstance(target, str):