diff --git a/modules/helloworld/HelloWorld.py b/modules/helloworld/HelloWorld.py index c30b036..da7e0c2 100644 --- a/modules/helloworld/HelloWorld.py +++ b/modules/helloworld/HelloWorld.py @@ -1,6 +1,13 @@ +import subprocess + + class HelloWorld: """docstring for SampleModule.""" def run(self): print("This shows that your installation is working correctly.") print("You can now start using the tool.") + output = subprocess.check_output("cat /etc/*-release", shell=True).decode("UTF-8") + print("Your system information \n" + output) + with open("your_system_information.txt", "w") as file: + file.write(output)