Files
espifetch/logo.py
T
2026-03-03 01:53:14 -06:00

23 lines
538 B
Python

from colored import Fore, Back, Style
from pathlib import Path
python_script_path = Path(__file__).parent
def set_logo(distro="linux"):
distro_logo_path = None
color = None
match distro:
case "debian":
distro_logo_path = python_script_path / "logos" / "debian.txt"
color = Fore.red
case _:
distro_logo_path = python_script_path / "logos" / "linux.txt"
return distro_logo_path, color
def open_logo_file(path):
with open(path, "r") as f:
return f.read()