(self)
| 1189 | data_files.append((target_path, f)) |
| 1190 | |
| 1191 | def _optimize_data_files(self): |
| 1192 | data_dict = {} |
| 1193 | for p, files in self.data_files: |
| 1194 | if p not in data_dict: |
| 1195 | data_dict[p] = set() |
| 1196 | for f in files: |
| 1197 | data_dict[p].add(f) |
| 1198 | self.data_files[:] = [(p, list(files)) for p, files in data_dict.items()] |
| 1199 | |
| 1200 | def add_data_files(self,*files): |
| 1201 | """Add data files to configuration data_files. |