how to find out if the environment is windows or unix . I want to execute such similar code as shown below. Please suggest
import os if (os.getenv(\"windows\"):
Use System.getProperty to get the os.name property.
>>> import java.lang.System >>> java.lang.System.getProperty('os.name') u'Mac OS X'