2020-03-21 02:08:22 +01:00
|
|
|
import subprocess
|
|
|
|
|
|
|
|
|
2020-03-06 02:34:57 +01:00
|
|
|
class HelloWorld:
|
2020-03-05 21:34:17 +01:00
|
|
|
"""docstring for SampleModule."""
|
|
|
|
|
|
|
|
def run(self):
|
|
|
|
print("This shows that your installation is working correctly.")
|
2020-03-21 04:11:01 +01:00
|
|
|
subprocess.call("screenfetch", shell=True)
|
2020-03-05 21:34:17 +01:00
|
|
|
print("You can now start using the tool.")
|
2020-03-21 02:08:22 +01:00
|
|
|
output = subprocess.check_output("cat /etc/*-release", shell=True).decode("UTF-8")
|
|
|
|
with open("your_system_information.txt", "w") as file:
|
|
|
|
file.write(output)
|