mirror of
https://github.com/daylinmorgan/viv.git
synced 2024-12-22 10:40:44 -06:00
fix: use proper XDG directory as default cache
This commit is contained in:
parent
0d0c66d090
commit
8493916ff8
1 changed files with 2 additions and 4 deletions
|
@ -30,7 +30,7 @@ from pathlib import Path
|
||||||
from textwrap import dedent, wrap
|
from textwrap import dedent, wrap
|
||||||
from typing import Dict, List, Tuple
|
from typing import Dict, List, Tuple
|
||||||
|
|
||||||
__version__ = "22.12a3-34-g1e74ebf-dev"
|
__version__ = "22.12a3-35-g0d0c66d-dev"
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
|
@ -38,9 +38,7 @@ class Config:
|
||||||
"""viv config manager"""
|
"""viv config manager"""
|
||||||
|
|
||||||
venvcache: Path = (
|
venvcache: Path = (
|
||||||
Path(os.getenv("XDG_CACHE_HOME", Path.home() / ".local" / "cache"))
|
Path(os.getenv("XDG_CACHE_HOME", Path.home() / ".cache")) / "viv" / "venvs"
|
||||||
/ "viv"
|
|
||||||
/ "venvs"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
def __post_init__(self):
|
def __post_init__(self):
|
||||||
|
|
Loading…
Reference in a new issue