1 2 3 4 5 6 7 8
package TeXLive object OsInfo { val OS = System.getProperty("os.name") def isWindows: Boolean = { OS.startsWith("Windows") } }