

def __init__(self, site, category=None, name=None, app_name=None):
    self.category = category
    self.site = site
    self.name = name
    self.app_name = app_name
    if (not self.logger_name):
        self.logger_name = ('nexus.%s' % self.name)
    self.logger = logging.getLogger(self.logger_name)
    if (not self.media_root):
        mod = __import__(self.__class__.__module__)
        self.media_root = os.path.normpath(os.path.join(os.path.dirname(mod.__file__), 'media'))

dataset/ETHPy150Open disqus/nexus/nexus/modules.py NexusModule.__init__/original