'Configure where screenshots are saved.
If ``screenshot_directory`` is not given, screenshots are saved into
same directory as the log file. The directory can also be set using
`Set Screenshot Directory` keyword.
``screenshot_module`` specifies the module or tool to use when using
this library on Python outside OSX. Possible values are ``wxPython``,
``PyGTK``, ``PIL`` and ``scrot``, case-insensitively. If no value is
given, the first module/tool found is used in that order. See `Using
with Python` for more information.
Examples (use only one of these):
| =Setting= |  =Value=   |  =Value=   |
| Library   | Screenshot |            |
| Library   | Screenshot | ${TEMPDIR} |
| Library   | Screenshot | screenshot_module=PyGTK |
Specifying explicit screenshot module is new in Robot Framework 2.9.2.'

def __init__(self, screenshot_directory=None, screenshot_module=None):

    self._given_screenshot_dir = self._norm_path(screenshot_directory)
    self._screenshot_taker = ScreenshotTaker(screenshot_module)
