def __init__(self, config):
        """
        Constructor.

        :param object config: The instance of the VSGConfigParser class
        """
        # Resolve the root path
        root = config.get('vsgen', 'root', fallback=None)
        if not root:
            raise ValueError('Expected option "root" in section [vsgen].')
        if not os.path.isdir(root):
            raise ValueError('Expected option "root" (%s) does not resolve to valid directory.' % root)

        # Build the VSG Solutions
        self._solutions = [self._getsolution(config, s) for s in config.sections() if 'vsgen.solution' in s]

        return super(VSGSuite, self).__init__()
def __init__ ( self , config ) : root = config . get ( 'vsgen' , 'root' , fallback = None ) if not root : raise ValueError ( 'Expected option "root" in section [vsgen].' ) if not os . path . isdir ( root ) : raise ValueError ( 'Expected option "root" (%s) does not resolve to valid directory.' % root ) self . _solutions = [ self . _getsolution ( config , s ) for s in config . sections ( ) if 'vsgen.solution' in s ] return super ( VSGSuite , self ) . __init__ ( )
Constructor.

        :param object config: The instance of the VSGConfigParser class