Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/changelog/3639.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added 'LocalAppData' to the default passed environment variables on Windows.
4 changes: 4 additions & 0 deletions docs/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,10 @@ Base options
- ❌
- ❌
- ✅
* - LOCALAPPDATA
- ❌
- ❌
- ✅
* - PROGRAMDATA
- ❌
- ❌
Expand Down
1 change: 1 addition & 0 deletions src/tox/tox_env/python/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ def _default_pass_env(self) -> list[str]:
env.extend(
[
"APPDATA", # Needed for PIP platformsdirs.windows
"LOCALAPPDATA", # Needed for pymanager
"PROGRAMDATA", # needed for discovering the VS compiler
"PROGRAMFILES(x86)", # needed for discovering the VS compiler
"PROGRAMFILES", # needed for discovering the VS compiler
Expand Down
1 change: 1 addition & 0 deletions tests/session/cmd/test_show_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ def test_pass_env_config_default(tox_project: ToxProjectCreator, stdout_is_atty:
+ (["COMSPEC"] if is_win else [])
+ ["CPPFLAGS", "CURL_CA_BUNDLE", "CXX", "FORCE_COLOR", "HOME", "LANG"]
+ ["LANGUAGE", "LDFLAGS", "LD_LIBRARY_PATH"]
+ (["LOCALAPPDATA"] if is_win else [])
+ (["MSYSTEM"] if is_win else [])
+ ["NETRC"]
+ (["NIX_LD", "NIX_LD_LIBRARY_PATH"] if not is_win else [])
Expand Down