mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:30:53 +01:00
[PR #979] mc_command: PATHEXT fallback for extensionless paths with spaces (OLD-9856) #1015
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#1015
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/979
Author: @OlaiFG7
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:carry/old-9856-mc-command-pathext📝 Commits (2)
c580e03tools/mc_command: check PATHEXT on Windows when shutil.which misses path without extensionfa55e7etests/mc_command: add cross-platform PATHEXT fallback test and clarify comment📊 Changes
2 files changed (+19 additions, -2 deletions)
View changed files
📝
tests/test_mc_command.py(+10 -0)📝
tools/mc_command.py(+9 -2)📄 Description
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
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.