def dump_info():
"""Dumps some info regarding the environment we are running in.
The intended use is to ask the user to paste this info for
troubleshooting steps.
"""
print("Python version: {}".format(platform.python_version()))
print("\n ")
print("System's release version: {}".format(platform.version()))
print("\n ")
print("Platform: {}".format(platform.platform()))
print("\n ")
print("OS environment: {}".format(platform.os.environ))
print("\n ")
print("Platform architecture: {}".format(platform.architecture()))
print("\n ")
print("Linux distrubition name: {}".format(platform.dist()))
print("\n ")
print("System/OS name: {}".format(platform.system()))
评论列表
文章目录