MCPcopy Create free account
hub / github.com/defold/defold / main

Function main

scripts/project_synth.py:7–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5
6
7def 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
18if __name__ == "__main__":

Callers 1

project_synth.pyFile · 0.70

Calls 1

mainMethod · 0.45

Tested by

no test coverage detected