From 5dd0ce300d8c26a9f7796a45a1aee274818b9a86 Mon Sep 17 00:00:00 2001 From: Richard Mwewa <74001397+rly0nheart@users.noreply.github.com> Date: Wed, 25 May 2022 10:52:43 +0200 Subject: [PATCH] Update and rename utils/colors.py to utilities/colors.py --- {utils => utilities}/colors.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename {utils => utilities}/colors.py (93%) diff --git a/utils/colors.py b/utilities/colors.py similarity index 93% rename from utils/colors.py rename to utilities/colors.py index 53ef18c..dde5cf6 100644 --- a/utils/colors.py +++ b/utilities/colors.py @@ -1,5 +1,5 @@ -import os import sys +import getpass import platform from datetime import datetime @@ -39,7 +39,7 @@ class Color: print("\n") while True: try: - color_chooser = input(f"[ ? ] Welcome {os.getlogin()}, would you like to enable colors for this session? (y/n) ") + color_chooser = input(f"[ ? ] Welcome {getpass.getuser()}, would you like to enable colors for this session? (y/n) ") if color_chooser.lower() == "y": white = "\033[97m" red = "\033[91m"