[F] Make config path only when it's needed
This commit is contained in:
parent
3219547c92
commit
2c8261dc9a
2 changed files with 6 additions and 2 deletions
|
@ -48,6 +48,10 @@ Feel free to experiment with it!
|
||||||
* [ ] Add interactive configurator for adjusting brightness
|
* [ ] Add interactive configurator for adjusting brightness
|
||||||
* [ ] Add configuration to emphasize certain parts of the original ASCII art (to make icons like Fedora and Ubuntu look nicer)
|
* [ ] Add configuration to emphasize certain parts of the original ASCII art (to make icons like Fedora and Ubuntu look nicer)
|
||||||
|
|
||||||
|
### 1.0.7
|
||||||
|
|
||||||
|
* Fix: Make config path not on init but when it's actually needed.
|
||||||
|
|
||||||
### 1.0.6
|
### 1.0.6
|
||||||
|
|
||||||
* Remove `hypy_utils` dependency to make packaging easier.
|
* Remove `hypy_utils` dependency to make packaging easier.
|
||||||
|
|
|
@ -13,8 +13,7 @@ from .presets import PRESETS, ColorProfile
|
||||||
from .serializer import json_stringify
|
from .serializer import json_stringify
|
||||||
|
|
||||||
CONFIG_PATH = Path.home() / '.config/hyfetch.json'
|
CONFIG_PATH = Path.home() / '.config/hyfetch.json'
|
||||||
CONFIG_PATH.parent.mkdir(exist_ok=True, parents=True)
|
VERSION = '1.0.7'
|
||||||
VERSION = '1.0.6'
|
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
|
@ -23,6 +22,7 @@ class Config:
|
||||||
mode: AnsiMode
|
mode: AnsiMode
|
||||||
|
|
||||||
def save(self):
|
def save(self):
|
||||||
|
CONFIG_PATH.parent.mkdir(exist_ok=True, parents=True)
|
||||||
CONFIG_PATH.write_text(json_stringify(self), 'utf-8')
|
CONFIG_PATH.write_text(json_stringify(self), 'utf-8')
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue