

def _get_xvfb():
    if (not sys.platform.startswith('linux')):
        return None
    try:
        from xvfbwrapper import Xvfb
        (width, height) = map(int, defaults.VIEWPORT_SIZE.split('x'))
        return Xvfb(width, height)
    except ImportError:
        return None

dataset/ETHPy150Open scrapinghub/splash/splash/xvfb.py _get_xvfb/original