Created
March 2, 2023 23:03
-
-
Save DevGW/b318e472b5ec57411443e6d9f46da4b9 to your computer and use it in GitHub Desktop.
Determine platform type #python
This file contains 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
from sys import platform | |
if platform == "linux" or platform == "linux2": | |
# linux | |
elif platform == "darwin": | |
# OS X | |
elif platform == "win32": | |
# Windows... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment