Find the path of the deployed egg package that may contain the
    specified module path.


    @param module_path: the path of a Python module.


    @return: the absolute path of the deployed egg package that contains
        the specified module path, or ``None`` if no deployed egg
        package contains this module path.

def find_module_egg_path(module_path):
    """
    Find the path of the deployed egg package that may contain the
    specified module path.


    @param module_path: the path of a Python module.


    @return: the absolute path of the deployed egg package that contains
        the specified module path, or ``None`` if no deployed egg
        package contains this module path.
    """
    if module_path.find('.egg') == -1:
        return None

    _module_absolute_path = os.path.abspath(module_path)

    egg_paths = [os.path.relpath(_module_absolute_path, egg_path)
        for egg_path in [egg_path for egg_path in sys.path
            if REGEX_EGG_PACKAGE_PATH.match(egg_path) \
               and _module_absolute_path.startswith(egg_path)]]

    return None if len(egg_paths) == 0 else egg_paths[0]