def is_installed(module):
    "Tests to see if ``module`` is available on the sys.path\n\n    >>> is_installed('sys')\n    True\n    >>> is_installed('hopefullythisisnotarealmodule')\n    False\n\n    "
    try:
        __import__(module)
        return True
    except ImportError:
        return False
Tests to see if ``module`` is available on the sys.path

>>> is_installed('sys')
True
>>> is_installed('hopefullythisisnotarealmodule')
False
def is_installed(module):
    "Tests to see if ``module`` is available on the sys.path\n\n    >>> is_installed('sys')\n    True\n    >>> is_installed('hopefullythisisnotarealmodule')\n    False\n\n    "
    try:
        __import__(module)
        return True
    except ImportError:
        return False