# Path: lightbulb/core/base.py
# def importmodule(name):
#     try:
#        try:
#           mod = __import__(name)
#        except:
#           modfile, pathname, description = imp.find_module(name)
#           mod = imp.load_module(name, modfile, pathname, description)
#        components = name.split('.')
#        for comp in components[1:]:
#            mod = getattr(mod, comp)
#     except ImportError as error:
#        print error.__class__.__name__ + ": " + error.message
# 
#     return mod


import logging
import os
import sys
import imp
from os.path import expanduser
from lightbulb.core.base import importmodule
from cliff.lister import Lister
                        if name.endswith(".py")]
        self.app.stdout.write('\n\nAvaliable Core Modules:\n')
        data = []
        for module in module_names:
            try:
                meta = importmodule('lightbulb.core.modules.' + module).META
                data.append((meta['name'], meta['description']))
            except:
                pass
        return (('Name', 'Value'), (data))

class Utils(Lister):
    "Shows available core modules"

    log = logging.getLogger(__name__)

    def take_action(self, parsed_args):
        """
        Returns available application module
        Args:
            None
        Returns:
            tuple: Available application modules
        """
        module_names = [name[:-3] for name in os.listdir(imp.find_module('lightbulb')[1] + '/core/utils/')
                        if name.endswith(".py")]
        self.app.stdout.write('\n\nAvaliable Utilities Modules:\n')
        data = []
        for module in module_names:
            try:

# Path: lightbulb/core/base.py
# def importmodule(name):
#     try:
#        try:
#           mod = __import__(name)
#        except:
#           modfile, pathname, description = imp.find_module(name)
#           mod = imp.load_module(name, modfile, pathname, description)
#        components = name.split('.')
#        for comp in components[1:]:
#            mod = getattr(mod, comp)
#     except ImportError as error:
#        print error.__class__.__name__ + ": " + error.message
# 
#     return mod


# Path: lightbulb/cli/show.py
import logging
import os
import sys
import imp
from os.path import expanduser
from lightbulb.core.base import importmodule
from cliff.lister import Lister

                        if name.endswith(".py")]
        self.app.stdout.write('\n\nAvaliable Core Modules:\n')
        data = []
        for module in module_names:
            try:
                meta = importmodule('lightbulb.core.modules.' + module).META
                data.append((meta['name'], meta['description']))
            except:
                pass
        return (('Name', 'Value'), (data))

class Utils(Lister):
    "Shows available core modules"

    log = logging.getLogger(__name__)

    def take_action(self, parsed_args):
        """
        Returns available application module
        Args:
            None
        Returns:
            tuple: Available application modules
        """
        module_names = [name[:-3] for name in os.listdir(imp.find_module('lightbulb')[1] + '/core/utils/')
                        if name.endswith(".py")]
        self.app.stdout.write('\n\nAvaliable Utilities Modules:\n')
        data = []
        for module in module_names:
            try:

                meta = importmodule('lightbulb.core.utils.' + module).META