Skip to content

run_guest_scene: take the Wine from the environment - #2210

Closed
whoalin1 wants to merge 1 commit into
ProjectLeonida:mainfrom
whoalin1:guest-scene-wine-env
Closed

whoalin1 wants to merge 1 commit into
ProjectLeonida:mainfrom
whoalin1:guest-scene-wine-env

Conversation

@whoalin1

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown

Verified on main a73a57e (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

Copy link
Copy Markdown
Collaborator

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)

@MoonEyes MoonEyes closed this Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants