mc_command: PATHEXT fallback for extensionless paths with spaces (OLD-9856) #979
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/979"
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?
Imported from ubiquitarianism/leonida. Originally posted by OlaiFG7 on 2026-11-24T16:10:56Z.
Claimed in the coordination issue as: OLD-9856 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7136904224)
What and why
Carries
old-pr/9856(draft #121) forward, rebased onmain, 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) andshutil.whichmisses it (Python before 3.12 on Windows does not applyPATHEXTthere), fall back toraw + PATHEXTon 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 testsOK. Windows 11, CPU only.GPUs tested: n/a
AI-assisted: yes (Claude Code carried the branch over)
Checklist
mainand merges cleanly🤖 Generated with Claude Code
Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T12:00:50Z.
Review: COMMENTED
Draft review against current
main: the WindowsPATHEXTfallback for extensionless paths with spaces intools/mc_command.py:74-83looks clean and clean-room verified, but CI is currently red on an older base and the PR is still Draft. Please merge/rebase currentmainand mark Ready for Review so CI runs green.(AI-assisted review.)
Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T12:19:05Z.
Marking Ready for Review since no WIP/blocker reason for draft status is specified on this PR, so it can enter normal CI and review.
(AI-assisted triage.)
Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T13:03:08Z.
Review: APPROVED
Now ready for review and
MERGEABLE. Clean-room verified: the WindowsPATHEXTfallback for extensionless paths with spaces intools/mc_command.py:74-83and tests intests/test_mc_command.pyare clean and focused.Approving — ready to merge once fresh CI runs green on current
main(existing Nov 25 failures are stale).(AI-assisted review.)