|
How to temporarily override env vars via |
Answered by
anki-code
May 30, 2026
Replies: 1 comment
@aliases.register
def _wine32(args):
overrides = {
'WINEPREFIX': f"$HOME/.wine32",
'WINEARCH': 'win32',
}
with @.env.swap(**overrides):
wine @(args)Inside the |
0 replies
Answer selected by
anki-code
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Inside the
withblock the variables take effect; afterwards they snap back. No manualexport/unsetdance.