mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:35:53 +01:00
[PR #2342] Build.bat/Mods.bat: quote per-user Python paths, sync lookup, and add no-pause guard #2346
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#2346
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/2342
Author: @kirigayakazima
Created: 11/26/2026
Status: 🔄 Open
Base:
main← Head:fix/win-launchers-bat-safety📝 Commits (1)
6f015d8Build.bat/Mods.bat: quote per-user Python paths, sync lookup, and add no-pause guard📊 Changes
3 files changed (+176 additions, -25 deletions)
View changed files
📝
Build.bat(+20 -16)📝
Mods.bat(+23 -9)➕
tests/test_win_launchers.py(+133 -0)📄 Description
Claimed in the coordination issue as: WIN-LAUNCHERS-BUILD-MODS-BAT-QUOTING-USER-PYTHON-AND-NO-PAUSE (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7194337029)
What and why
Build.batandMods.batby splittingPYinto quotedPY_EXEandPY_ARG(set "PY_EXE=%~1", invoking"%PY_EXE%" %PY_ARG% -I ...) and quoting"%~1"in:try_pythonso per-user install paths containing spaces or&work without unquoted syntax errors.:find_user_pythonand:try_pythontoMods.bat(matchingBuild.bat) so per-user Python installs under%LOCALAPPDATA%\Programs\Python\Python3*work in the mod manager launcher as well.pausecalls in bothBuild.batandMods.batwithif not defined LEONIDA_NO_PAUSE pause, and addPYTMPfallbacks (%TEMP%->%LOCALAPPDATA%\Temp->%~dp0) inBuild.bat's:py_download.tests/test_win_launchers.py.Tested
python -I tests/test_win_launchers.py -v: 2 passed, 0 failed (detachedupstream/mainbaseline with only the new test file fails with 2 failures).python -I tests/test_ci_registration.py: 16 passed.python -I tests/test_text_write_line_endings.py: 3 passed.python -I scripts/check_no_game_data.py,python -I -m compileall -q tests/test_win_launchers.py, andgit diff --cached --check: passed.GPUs 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.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.