linux-tools/modules/helloworld/__init__.py
Lucas Noki b09431877e Check if lnxtools.sh is run as root
Update requirements.txt
Update wording
2020-08-02 04:16:30 +02:00

18 lines
541 B
Python

"""Docstring"""
import subprocess
from print_helpers import print_gr
def helloworld():
print_gr("This shows that your installation is working correctly")
subprocess.call("screenfetch", shell=True)
print_gr("You can now proceed with setting up individual modules")
print_gr("Run ./lnxtools.sh to see all available commands")
output = subprocess.check_output("cat /etc/*-release", shell=True).decode("UTF-8")
with open("your_system_information.txt", "w") as file:
file.write(output)
functions = helloworld