plover.oslayer – Platform layer¶
This is an umbrella package for platform-specific functionality:
- plover.oslayer.PLATFORM_PACKAGE: Dict[str, str]¶
A mapping from platforms to platform layer packages.
The keys are platform names, the same as in
PLATFORM, and the values are names of subpackages withinplover.oslayer. For example, logic specific to macOS systems (for whichPLATFORMismac) can be found inplover.oslayer.osx, and this is defined as follows:PLATFORM_PACKAGE = { "mac": "osx", }
By adding a platform definition to this mapping, the platform layer logic can be imported automatically without using the platform name, for example
plover.oslayer.osx.wmctrlis imported asplover.oslayer.wmctrl, and the same for every other platform.