Skip to content

Project Config

Returns the whole settings dictionary of the project. Raises RuntimeError when project.pygs cannot be found or read — this only happens when the file was moved or edited by hand outside the editor. The file lives in the project root; in a protected build it is encrypted and decrypted on the fly, so reading it works exactly the same.

Path of the current project root; '' when not running inside a project.

Asset panel settings (current_scene, sort_type). Type dict.

Path of the scene loaded when studio.load_scene() is called without a path. Type str.

Sort order of the asset panel — editor only. Type int.

Options of the Build window: app_name, app_icon, output_dir. Type dict.

The project name. It is the initial window title and the default application name for a build. Type str.

[screen_width, screen_height] — the size passed to pygame.display.set_mode(). Type list.

Window width and height in pixels. Type int.