Where is the module that identifies the operating system (Windows, UNIX, etc.) within the Python script?
python os-detection
There's a way to write. There is a slight difference between each module, but I don't think you can use anything if you ask.
If you ran the code below in OS X
import os
print os.name
import platform
print platform.system()
import sys
print sys.platform
Output:
posix
Darwin
darwin
© 2024 OneMinuteCode. All rights reserved.