Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python check operating system

from sys import platform
if platform == "linux" or platform == "linux2":
    # linux
elif platform == "darwin":
    # OS X
elif platform == "win32":
    # Windows...
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #check #operating #system
ADD COMMENT
Topic
Name
4+4 =