Skip to content

dev

FreeBodyEngine.core.dev #

PROJECT = None module-attribute #

Project(path, assets, code, main_file, name) dataclass #

Describes a loaded project: its root path, plus the assets/code/main_file paths (relative to path) and name, all read from fbproject.toml.

assets instance-attribute #

code instance-attribute #

main_file instance-attribute #

name instance-attribute #

path instance-attribute #

find_project() #

Loads and caches the current project into the module-level PROJECT global, and puts its code directory on sys.path - but only when the DEVMODE flag is set, since a release build has no fbproject.toml to look up.

get_project() #

Returns the project loaded by find_project(), or None if find_project() hasn't run yet (e.g. DEVMODE is off).

load_project() #

Finds and parses the project file.