Fix theme file finder ignoring $MIRAGE_DATA_DIR

This commit is contained in:
miruka 2020-09-01 14:05:19 -04:00
parent f5ad22fcfb
commit 63ccca60cb

View File

@ -453,7 +453,10 @@ class Theme(DataFile):
@property
def path(self) -> Path:
data_dir = Path(self.backend.appdirs.user_data_dir)
data_dir = Path(
os.environ.get("MIRAGE_DATA_DIR") or
self.backend.appdirs.user_data_dir,
)
return data_dir / "themes" / self.filename