init
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user