Pass config to plugin, but only if it has a section for the plugin

This commit is contained in:
3onyc 2013-12-10 08:57:47 +01:00
parent 23c586e616
commit d6e1da7073
3 changed files with 11 additions and 5 deletions

View file

@ -22,8 +22,9 @@ class BaseProject(object):
be found for the current path.
"""
def __init__(self, path):
def __init__(self, path, config):
self.path = path
self.config = config
def type(self):
""" Returns None if this is the base class.