Skip to content

Commit

Permalink
[+] Add cache path variable
Browse files Browse the repository at this point in the history
  • Loading branch information
hykilpikonna committed Jun 15, 2023
1 parent 50abc68 commit 2edf9c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hyfetch/constants.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from __future__ import annotations

import os
import platform
from dataclasses import dataclass
from pathlib import Path

from .types import LightDark
from .__version__ import VERSION

CONFIG_PATH = Path.home() / '.config/hyfetch.json'

Expand All @@ -28,6 +28,8 @@
DEFAULT_DARK_L = 0.
IS_WINDOWS = platform.system() == 'Windows'

CACHE_PATH = Path(os.getenv("LOCALAPPDATA") or os.getenv("XDG_CACHE_HOME") or Path.home() / '.cache') / 'hyfetch'

@dataclass
class GlobalConfig:
# Global color mode default to 8-bit for compatibility
Expand Down

0 comments on commit 2edf9c1

Please sign in to comment.