run_guest_scene: take the Wine from the environment #2210

Closed
leonida/mandy
whoalin1 wants to merge 0 commits from guest-scene-wine-env into main

Pull request closed

This pull request cannot be reopened because the branch was deleted.

whoalin1 commented 2026-11-26 06:17:21 +00:00

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.

## 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

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)

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

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)

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)
Sign in to join this conversation.
No description provided.