mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:05:53 +01:00
[PR #482] [MERGED] PREFLIGHT-TOOL-AVAILABLE-SPACES: parse quoted paths with spaces in make_game.tool_available #532
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#532
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/482
Author: @xroneyaa
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @aslan2142
Base:
main← Head:fix/make-game-tool-available-spaces📝 Commits (1)
2c03f29make_game: parse quoted paths with spaces in tool_available📊 Changes
2 files changed (+19 additions, -5 deletions)
View changed files
📝
make_game.py(+6 -5)📝
tests/test_make_game_preflight.py(+13 -0)📄 Description
Claimed in the coordination issue as: PREFLIGHT-TOOL-AVAILABLE-SPACES
What and why
make_game.tool_available()previously stripped outer quotes and split on whitespace (cmd.split()[0]). When passed a quoted path containing spaces plus arguments (such as"C:\Program Files\Python312\python.exe" -I), it split at the first space (C:\Program) and reported an available tool as missing, failingToolchainDetectionTest.test_tool_available_command_with_argumentson Windows systems where Python is installed underProgram Files.This reuses
tools/mc_command.py'ssplit_command()so quoted paths with spaces and arguments resolve to their executable path, unquoted paths with spaces still resolve viaos.path.isfile(), and unmatched quotes returnFalsewithout raisingSystemExit. Added space-in-path and unmatched-quote regression tests intests/test_make_game_preflight.py.Tested
python -I -m compileall -q make_game.py tests-> exit 0python -I tests/test_make_game_preflight.py-> Ran 100 tests, OK (skipped=1)python -I tests/test_make_game_argparse.py-> Ran 38 tests, OKpython -I tests/test_text_write_line_endings.py-> Ran 3 tests, OKpython -I scripts/check_no_game_data.py make_game.py tests/test_make_game_preflight.py-> exit 0GPUs tested: n/a
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed (n/a — no translator rule added).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.