def check_config(self, strict=False):

        # duplicate entries in the workflow are not allowed
        names = self.workflow._explicit_names
        dups = list(set([x for x in names if names.count(x) > 1]))
        if len(dups) > 0:
            raise RuntimeError("%s workflow has duplicate entries: %s" %
                                (self.get_pathname(), str(dups)))

        # workflow will raise an exception if it can't resolve a Component
        super(Driver, self).check_config(strict=strict)
        self.workflow.check_config(strict=strict)
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/driver.py/Driver.check_config/original