Skip to content

Instantly share code, notes, and snippets.

@askinss
Created November 2, 2020 13:10
Show Gist options
  • Save askinss/15448947333337c200bdfcef6f4c26b5 to your computer and use it in GitHub Desktop.
Save askinss/15448947333337c200bdfcef6f4c26b5 to your computer and use it in GitHub Desktop.
import platform
import os
os_name = OS.name
plat_name = platform.system()
plat_release = platform.release()
filedetails = open("devicedetails.txt", "w+")
fileD#tails.write("OS is %s\n Platform Name is %s\n Platform Release %s\n" % (os_name, plat_name, plat_release))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment