Determine the name of the operating system
suggest changeThe os module provides an interface to determine what type of operating system the code is currently running on.
os.name
This can return one of the following in Python 3:
posixntcejava
More detailed information can be retrieved from sys.platform
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents