Skip to content

Commit

Permalink
Very simple way to gather some OS information
Browse files Browse the repository at this point in the history
  • Loading branch information
geekcomputers committed Jan 17, 2012
1 parent 7480882 commit 2c811e8
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions osinfo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import platform

profile = [
platform.architecture(),
platform.dist(),
platform.libc_ver(),
platform.mac_ver(),
platform.machine(),
platform.node(),
platform.platform(),
platform.processor(),
platform.python_build(),
platform.python_compiler(),
platform.python_version(),
platform.system(),
platform.uname(),
platform.version(),
]

for item in profile:
print item

0 comments on commit 2c811e8

Please sign in to comment.