run_guest_scene: take the Wine from the environment #2210

Closed
whoalin1 wants to merge 1 commit from upstream-pr/2210 into main
whoalin1 commented 2026-11-26 06:17:21 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by whoalin1 on 2026-11-26T06:17:21Z.


Summary

  • default --wine to $WINE, with an empty value treated as unset
  • keep an explicit --wine ahead of the environment
  • let --wine-arg work when Wine comes from the environment, and include the missing value in the not-found error
  • add synthetic POSIX argument-parse regressions

Item: RUN-GUEST-SCENE-WINE-ENV

This carries forward the still-uncarried fix in old-pr/10047, originally written by SkippySteve, reapplied and verified on current main.

Tests

Under the local machine coordination lock, in WSL Ubuntu with Python 3.14.4:

  • control: the new tests fail on the unpatched script (3 failures, 2 errors; $WINE is ignored)
  • fixed: python3 -I tests/test_run_guest_scene_wine.py — 5 tests, OK
  • python -m compileall -q scripts/run_guest_scene.py tests/test_run_guest_scene_wine.py — pass
  • git diff --cached --check — pass

No game files or GPU.

AI-assisted with Devin.

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5505059725 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2210). Originally posted by [whoalin1](https://github.com/whoalin1) on 2026-11-26T06:17:21Z. --- ## Summary - default `--wine` to `$WINE`, with an empty value treated as unset - keep an explicit `--wine` ahead of the environment - let `--wine-arg` work when Wine comes from the environment, and include the missing value in the not-found error - add synthetic POSIX argument-parse regressions Item: RUN-GUEST-SCENE-WINE-ENV This carries forward the still-uncarried fix in old-pr/10047, originally written by SkippySteve, reapplied and verified on current main. ## Tests Under the local machine coordination lock, in WSL Ubuntu with Python 3.14.4: - control: the new tests fail on the unpatched script (3 failures, 2 errors; `$WINE` is ignored) - fixed: `python3 -I tests/test_run_guest_scene_wine.py` — 5 tests, OK - `python -m compileall -q scripts/run_guest_scene.py tests/test_run_guest_scene_wine.py` — pass - `git diff --cached --check` — pass No game files or GPU. AI-assisted with Devin.
real-rusher commented 2026-11-26 10:12:20 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by real-rusher on 2026-11-26T10:12:20Z.


Verified on main a73a57e1 (Ubuntu 24.04 x86-64, Python 3.13, no GPU, no Wine). Merges cleanly. With this PR, python -I tests/test_run_guest_scene_wine.py: 5 tests OK. The PR's test file against main's scripts/run_guest_scene.py: 3 failures and 2 errors, so the new tests fail on main and pass with the fix. compileall clean.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7189049401 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/2210#issuecomment-7189049401). Originally posted by [real-rusher](https://github.com/real-rusher) on 2026-11-26T10:12:20Z. --- Verified on main a73a57e1 (Ubuntu 24.04 x86-64, Python 3.13, no GPU, no Wine). Merges cleanly. With this PR, python -I tests/test_run_guest_scene_wine.py: 5 tests OK. The PR's test file against main's scripts/run_guest_scene.py: 3 failures and 2 errors, so the new tests fail on main and pass with the fix. compileall clean. AI-assisted: yes (Claude Code)
MoonEyes commented 2026-11-27 19:44:40 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-27T19:44:40Z.


Thanks a lot for this, @whoalin1. The same change is already open in #1239, claimed in #14 as OLD-10047: it carries SkippySteve's commit from old-pr/10047 with the same $WINE default and the same tests as this PR, plus one follow-up so that, on native Windows, a WINE variable in the environment is ignored unless --wine is given.

I am closing this one so the review happens in one place. Please continue the discussion on #1239, or reopen this one if you see something it misses.

AI-assisted (Claude Code, Claude Opus 5.5)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7226828234 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2210#issuecomment-7226828234). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-27T19:44:40Z. --- Thanks a lot for this, @whoalin1. The same change is already open in #1239, claimed in #14 as OLD-10047: it carries SkippySteve's commit from `old-pr/10047` with the same `$WINE` default and the same tests as this PR, plus one follow-up so that, on native Windows, a `WINE` variable in the environment is ignored unless `--wine` is given. I am closing this one so the review happens in one place. Please continue the discussion on #1239, or reopen this one if you see something it misses. AI-assisted (Claude Code, Claude Opus 5.5)

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!2210
No description provided.