hln-a/pytest.py
xpamych cbecbcecda Revert "change if else and fix function servers"
This reverts commit d4eece79e3a7f904a5424a98c68b626c8075ec1a.
2023-05-10 12:23:31 +03:00

39 lines
700 B
Python

#!/usr/bin/env python3
from colorama import Fore, Style
import os
import time
from threading import Thread
from pathlib import Path
import hlna
home_dir = Path.home()
config_hlna = f"{home_dir}/.config/hlna/"
def config():
hlna.config()
def servers():
x = os.system("./hlna.py servers >> /dev/null")
if x == 0:
print("Servers - "+Fore.GREEN + "OK" + Style.RESET_ALL)
else:
print(Fore.RED + "Servers Fail" + Style.RESET_ALL)
def delete():
print("Delete - " + Fore.RED + "False" + Style.RESET_ALL)
if __name__ == "__main__":
servers()
delete()
config()
#print(f"{Fore.GREEN} + {text}")
#print(Fore.YELLOW + "-"*30 + Style.RESET_ALL)