My own Godot "custom.py" (useful default values and caching system for older versions)
✓ Published0🌍 Public
Aadamscott
Last edited Jan 8, 2026
Created on Jun 1, 2023
This example presents a Python configuration script for the Godot game engine’s SCons build system, defining default values and caching behaviors for older versions. It shows how parameters like `platform`, `target`, and `dev_build` are set conditionally via `set_param` and `get_param`, with logic for macOS, Linux, and Windows detection. The code uses SCons’ `ARGUMENTS` and `TRUE_STRINGS` APIs, plus subprocess calls to check for tools like `brew`, `mold`, and `git` branch status. It also demonstrates environment detection through `platform_module` and optional integration with `mise.toml`.
AI-generated description