added more logging
This commit is contained in:
parent
29c7b302b0
commit
330f655932
1 changed files with 4 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue