12 lines
210 B
Python
12 lines
210 B
Python
import os
|
|
import platform
|
|
|
|
def get_sysinfo():
|
|
"""
|
|
Get the system info
|
|
"""
|
|
return "\n".join([
|
|
f"OS: {platform.system()}",
|
|
f"Arch: {platform.machine()}",
|
|
f"User: {os.environ.get('USER')}"
|
|
]) |