Ok I need to determine the system\'s OS from a Lua script, but Lua as such has no API for this, so I use os.getenv() and query enviromental variables. On Windows checking the en
You can try package.config:sub(1,1). It returns the path separator, which is '\\' on Windows and '/' on Unixes...
package.config:sub(1,1)
'\\'
'/'