mc_command: PATHEXT fallback for extensionless paths with spaces (OLD-9856) #979
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!979
Loading…
Reference in a new issue
No description provided.
Delete branch "carry/old-9856-mc-command-pathext"
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 successfully merged and closed
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
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.)
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.)