constants.py 293 B

123456789101112131415
  1. import os
  2. from pathlib import Path
  3. CONFIG_PATH = Path.home() / '.config/hyfetch.json'
  4. VERSION = '1.0.7'
  5. # Global color mode default to 8-bit for compatibility
  6. COLOR_MODE = '8bit'
  7. # Obtain terminal size
  8. try:
  9. TERM_LEN = os.get_terminal_size().columns
  10. except Exception:
  11. TERM_LEN = 40