def _get_plugins_module(self, package_name):
        """ Import 'plugins.py' from the package with the given name.

        If the package does not exist, or does not contain 'plugins.py' then
        return None.

        """

        try:
            module = __import__(package_name + '.plugins', fromlist=['plugins'])

        except __HOLE__:
            module = None

        return module

    # smell: Looooong and ugly!
dataset/ETHPy150Open enthought/envisage/envisage/package_plugin_manager.py/PackagePluginManager._get_plugins_module