def METHOD_NAME(self):
    dynamo_home = self.env['DYNAMO_HOME']
    skip_includes = [os.path.join(dynamo_home, 'include')]
    paths = []
    for path in self.env['INCLUDES']:
        if path in skip_includes:
            continue
        paths.append(path)
    self.env['INCLUDES'] = paths