Detect host operating system in Python mode?

edited December 2017 in Python Mode

Most of the common answers for how to detect the host operating system in Python involve using os, platform, or psutil. However in Python mode these don't return win/mac/linux or any variation on that, they only identify the jython Java platform.

import os
print os.name
import platform
print platform.system()

Output:

java
Java

Is there any way to determine what os a Python mode / processing.py sketch is running on?

Answers

Sign In or Register to comment.