mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-23 15:53:36 +05:00
25 lines
1.0 KiB
Python
25 lines
1.0 KiB
Python
# ======================================================================= #
|
|
# Copyright (C) 2020 - 2024 Dominik Willner <th33xitus@gmail.com> #
|
|
# #
|
|
# This file is part of KIAUH - Klipper Installation And Update Helper #
|
|
# https://github.com/dw-0/kiauh #
|
|
# #
|
|
# This file may be distributed under the terms of the GNU GPLv3 license #
|
|
# ======================================================================= #
|
|
|
|
import os
|
|
import pwd
|
|
from pathlib import Path
|
|
|
|
# text colors and formats
|
|
COLOR_WHITE = "\033[37m" # white
|
|
COLOR_MAGENTA = "\033[35m" # magenta
|
|
COLOR_GREEN = "\033[92m" # bright green
|
|
COLOR_YELLOW = "\033[93m" # bright yellow
|
|
COLOR_RED = "\033[91m" # bright red
|
|
COLOR_CYAN = "\033[96m" # bright cyan
|
|
RESET_FORMAT = "\033[0m" # reset format
|
|
# current user
|
|
CURRENT_USER = pwd.getpwuid(os.getuid())[0]
|
|
SYSTEMD = Path("/etc/systemd/system")
|