def export_cpath(self, include_dir, include_paths, add_to_include_dirs=True): from confu.validators import validate_include_dir include_dir = validate_include_dir(include_dir, self.root_dir) self.active_module.cpath.append(include_dir) if add_to_include_dirs: self._include_dirs.append(include_dir)
def add_include_dir(self, include_dir): from confu.validators import validate_include_dir include_dir = validate_include_dir(include_dir, self.root_dir) self._include_dirs.append(include_dir)