dauzcode

Python OS checker

Jul 4th, 2012
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1.  
  2. #!/usr/bin/python
  3.  
  4. import sys
  5. print """
  6. ---------------------------------------
  7. |.../)443 Code by Fird05
  8. ---------------------------------------
  9. """
  10.  
  11. a = sys.platform
  12. if a == "linux2":
  13.     print "Your system is GNU/Linux"
  14.  
  15. elif a == "win, win32":
  16.     print "Your system is Windows"
  17.    
  18. elif a == "darwin":
  19.     print "Your system is Mac OS X"
Advertisement
Add Comment
Please, Sign In to add comment