'Verify that a wmake/rules/ compiler rule exists in the project
directory.'

def has_rule(self, projdir):

    rule_dir = self._rule_directory(projdir)
    if (not os.path.isdir(rule_dir)):
        raise InstallError('No    wmake    rule    for    {0}'.format(self.rule))
    if (not re.match('.+Opt$', self.compile_option)):
        raise InstallError("WM_COMPILE_OPTION={0}    is    not    type    '*Opt'".format(self.compile_option))
    return True
