Fix theme file finder ignoring $MIRAGE_DATA_DIR
This commit is contained in:
parent
f5ad22fcfb
commit
63ccca60cb
|
@ -453,7 +453,10 @@ class Theme(DataFile):
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def path(self) -> Path:
|
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
|
return data_dir / "themes" / self.filename
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user