mc_command: PATHEXT fallback for extensionless paths with spaces (OLD-9856) #979

Open
github-bot wants to merge 2 commits from github-bot/gh-979 into main AGit
Owner

@⁠OlaiFG7 on GitHub · 2026-11-24 16:10 UTC · original
OlaiFG7:carry/old-9856-mc-command-pathext → main · +19 −2 · 2 files · 2 commits · draft

Claimed in the coordination issue as: OLD-9856 (#14)

What and why

Carries old-pr/9856 (draft #121) forward, rebased on main, keeping the original author's commits (lordon1a).

tools/mc_command.split_command: when a path with a directory part has no extension (C:\Program Files\LLVM\bin\llvm-mc) and shutil.which misses it (Python before 3.12 on Windows does not apply PATHEXT there), fall back to raw + PATHEXT on Windows so the path is not split at its spaces. Adds a mocked cross-platform test.

Tested

python -I tests/test_mc_command.py: 30 tests OK (7 skipped); python -m compileall -q make_game.py tools tests OK. Windows 11, CPU only.

GPUs tested: n/a

AI-assisted: yes (Claude Code carried the branch over)

Checklist

  • Based on current main and merges cleanly
  • One topic
  • No game data, keys or decryption
  • Not a translator rule

🤖 Generated with Claude Code

**@⁠OlaiFG7** on GitHub · 2026-11-24 16:10 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/979) `OlaiFG7:carry/old-9856-mc-command-pathext` → `main` · +19 −2 · 2 files · 2 commits · draft Claimed in the coordination issue as: OLD-9856 (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14) ### What and why Carries `old-pr/9856` (draft #121) forward, rebased on `main`, keeping the original author's commits (lordon1a). `tools/mc_command.split_command`: when a path with a directory part has no extension (`C:\Program Files\LLVM\bin\llvm-mc`) and `shutil.which` misses it (Python before 3.12 on Windows does not apply `PATHEXT` there), fall back to `raw + PATHEXT` on Windows so the path is not split at its spaces. Adds a mocked cross-platform test. ### Tested `python -I tests/test_mc_command.py`: 30 tests OK (7 skipped); `python -m compileall -q make_game.py tools tests` OK. Windows 11, CPU only. GPUs tested: n/a AI-assisted: yes (Claude Code carried the branch over) ### Checklist - [ ] Based on current `main` and merges cleanly - [x] One topic - [x] No game data, keys or decryption - [x] Not a translator rule 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:31:36 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/979/head:github-bot/gh-979'
git switch 'github-bot/gh-979'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-979'
git switch 'github-bot/gh-979'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-979'
git switch 'github-bot/gh-979'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-979'
git switch 'main'
git merge --squash 'github-bot/gh-979'
git switch 'main'
git merge --ff-only 'github-bot/gh-979'
git switch 'main'
git merge 'github-bot/gh-979'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.