Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Python.LibraryPlatform

Return the platform identifier for the current platform.

Component Version macOS Windows Linux Server iOS SDK
Python 15.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "Python.LibraryPlatform" )

Parameters

none

Result

Returns text or error.

Description

Return the platform identifier for the current platform.
On Unix, this is formed from the “official” name of the operating system, converted to lower case, followed by the major revision number; e.g., for Solaris 2.x, which is also known as SunOS 5.x, the value is 'sunos5'. On macOS, it is 'darwin'. On Windows, it is 'win'.
The value is available to Python code as sys.platform.

Examples

Query value on macOS:

MBS( "Python.LibraryPlatform" )

Example result: darwin

Blog Entries

This function is free to use.

Created 30th March 2025, last changed 30th March 2025


Python.LibraryCopyright - Python.LibraryVersion