Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python check is os is windows

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 #os #windows
ADD COMMENT
Topic
Name
9+8 =