# Path: mss/exception.py
# class ScreenShotError(Exception):
#     """ Error handling class. """


import platform
from .exception import ScreenShotError
        from .darwin import MSS
        from .linux import MSS
        from .windows import MSS
# coding: utf-8
"""
This is part of the MSS Python's module.
Source: https://github.com/BoboTiG/python-mss
"""




def mss(**kwargs):
    # type: (**str) -> MSS
    """ Factory returning a proper MSS class instance.

        It detects the plateform we are running on
        and choose the most adapted mss_class to take
        screenshots.

        It then proxies its arguments to the class for
        instantiation.
    """

    operating_system = platform.system().lower()
    if operating_system == 'darwin':
    elif operating_system == 'linux':
    elif operating_system == 'windows':
    else:

# Path: mss/exception.py
# class ScreenShotError(Exception):
#     """ Error handling class. """


# Path: mss/factory.py
import platform
from .exception import ScreenShotError
        from .darwin import MSS
        from .linux import MSS
        from .windows import MSS

# coding: utf-8
"""
This is part of the MSS Python's module.
Source: https://github.com/BoboTiG/python-mss
"""




def mss(**kwargs):
    # type: (**str) -> MSS
    """ Factory returning a proper MSS class instance.

        It detects the plateform we are running on
        and choose the most adapted mss_class to take
        screenshots.

        It then proxies its arguments to the class for
        instantiation.
    """

    operating_system = platform.system().lower()
    if operating_system == 'darwin':
    elif operating_system == 'linux':
    elif operating_system == 'windows':
    else:

        raise ScreenShotError('System not (yet?) implemented.', locals())