(project_shortname, components)
| 282 | |
| 283 | |
| 284 | def generate_imports(project_shortname, components): |
| 285 | with open( |
| 286 | os.path.join(project_shortname, "_imports_.py"), "w", encoding="utf-8" |
| 287 | ) as f: |
| 288 | component_imports = "\n".join(f"from .{x} import {x}" for x in components) |
| 289 | all_list = ",\n".join(f' "{x}"' for x in components) |
| 290 | imports_string = f"{component_imports}\n\n__all__ = [\n{all_list}\n]" |
| 291 | |
| 292 | f.write(imports_string) |
| 293 | |
| 294 | |
| 295 | def generate_classes_files(project_shortname, metadata, *component_generators): |
no outgoing calls
no test coverage detected
searching dependent graphs…