1
0
Fork 0

added more logging

This commit is contained in:
Kim, Jimin 2022-01-27 21:52:27 +09:00
parent 29c7b302b0
commit 330f655932

View file

@ -8,17 +8,18 @@ def initialize():
Initialize before running any code.
"""
# Install flatpak
log.log("Initializing flatpak")
if os.system("sudo pacman -S --noconfirm --needed flatpak &> /dev/null"):
log.error("Failed to install flatpak form archlinux package repository")
exit(1)
# Install pip
log.log("Initializing pip")
if os.system("sudo pacman -S --noconfirm --needed python-pip &> /dev/null"):
log.error("Failed to install pip from archlinux package repository")
exit(1)
# install [pytermgui](https://github.com/bczsalba/pytermgui)
# https://github.com/bczsalba/pytermgui
log.log("Initializing pytermgui")
if os.system("pip install pytermgui &> /dev/null"):
log.error("Failed to install pytermgui from pip")
exit(1)