Running your Program¶
A project made by the launcher (see Installing Acron) runs with the Run button on its page in the launcher, which shows the program’s output in the launcher’s output panel.
From a Terminal¶
Open a terminal (“Terminal” on macOS and Linux, “Command Prompt” or
PowerShell on Windows) and change to the project’s folder with cd:
cd "Documents/Acron Projects/my-game"
Activate the project’s environment, so that python and
acronmanager are the project’s own:
source .venv/bin/activate # macOS and Linux
.venv\Scripts\activate # Windows
Then run the game:
acronmanager run
acronmanager run starts the project’s main_file (src/main.py by
default, set in pyproject.toml) with the project folder on the module
search path. python src/main.py runs the same file directly. If all is
well, Acron starts and the main rendering window appears.
Other Targets¶
A project can name other programs to run, with their own arguments and
environment, in pyproject.toml:
[tool.acron.scripts]
debug = { file = "src/main.py", env = { ACRON_BLUEPRINTS_STRICT = "1" } }
editor = "tools/level_editor.py"
acronmanager run debug runs one of them, acronmanager run --list
names them, and arguments after -- are passed on to the program
(acronmanager run -- --windowed). The launcher offers the same targets
in a list beside its Run button.