Created
April 1, 2015 15:46
-
-
Save krisarmstrong/a6fff0d44b174376350b to your computer and use it in GitHub Desktop.
Checks for system OS (Linux, Windows, MAC OSX)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| system_os = sys.platform | |
| if sys.platform.startswith('win32'): | |
| # Win32-specific code here... | |
| print("DEBUG: Windows Version", system_os) | |
| elif sys.platform.startswith('linux'): | |
| # Linux-specific code here... | |
| print("DEBUG: Linux Version", system_os) | |
| elif sys.platform.startswith("darwin"): | |
| # OSX-specific code here... | |
| print("DEBUG: Mac OSX Version", system_os) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment