(self)
Load the CoreGraphics library.
Load the CoreGraphics library.
Load the CoreGraphics library .
def _init_library(self):
        """ Load the CoreGraphics library. """
        version = float(".".join(mac_ver()[0].split(".")[:2]))
        if version < 10.16:
            coregraphics = ctypes.util.find_library("CoreGraphics")
        else:
            # macOS Big Sur and newer
            # pylint: disable=line-too-long
            coregraphics = "/System/Library/Frameworks/CoreGraphics.framework/Versions/Current/CoreGraphics"

        if not coregraphics:
            raise ScreenShotError("No CoreGraphics library found.")
        self.core = ctypes.cdll.LoadLibrary(coregraphics)
def _init_library ( self ) : version = float ( "." . join ( mac_ver ( ) [ 0 ] . split ( "." ) [ : 2 ] ) ) if version < 10.16 : coregraphics = ctypes . util . find_library ( "CoreGraphics" ) else : # macOS Big Sur and newer # pylint: disable=line-too-long coregraphics = "/System/Library/Frameworks/CoreGraphics.framework/Versions/Current/CoreGraphics" if not coregraphics : raise ScreenShotError ( "No CoreGraphics library found." ) self . core = ctypes . cdll . LoadLibrary ( coregraphics )