Test if my file is running on windows?

Is there any short boolean test if my file is running on windows? For example, to choose the right path, thank you!

Two liner in Python:

HTH
Jeremy

Rhino.Runtime.HostUtils.RunningOnWindows

https://developer.rhino3d.com/api/RhinoCommon/html/P_Rhino_Runtime_HostUtils_RunningOnWindows.htm

1 Like