()
| 5 | |
| 6 | |
| 7 | def main() -> int: |
| 8 | script_dir = Path(__file__).resolve().parent |
| 9 | cli_path = script_dir / "project_synth" / "cli.py" |
| 10 | spec = importlib.util.spec_from_file_location("project_synth_cli", cli_path) |
| 11 | if spec is None or spec.loader is None: |
| 12 | raise RuntimeError(f"Unable to load CLI module from {cli_path}") |
| 13 | module = importlib.util.module_from_spec(spec) |
| 14 | spec.loader.exec_module(module) |
| 15 | return module.main() |
| 16 | |
| 17 | |
| 18 | if __name__ == "__main__": |