-
-
Notifications
You must be signed in to change notification settings - Fork 526
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include windir
by default in pass_env
#3302
Labels
Comments
PR welcome. |
kurtmckee
added a commit
to kurtmckee/pr-tox
that referenced
this issue
Jul 1, 2024
kurtmckee
added a commit
to kurtmckee/pr-tox
that referenced
this issue
Jul 1, 2024
5 tasks
kurtmckee
added a commit
to kurtmckee/pr-tox
that referenced
this issue
Jul 1, 2024
kurtmckee
added a commit
to kurtmckee/pr-tox
that referenced
this issue
Jul 1, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What's the problem this feature will solve?
When running tools in a tox environment, some applications require that the
WINDIR
environment variable exists. The existence of that environment variables is guaranteed since Windows 95, and no application ever documents this requirement.I've learned this through years of past experience, but bumped into this again today with this minimal reproducer
tox.ini
on Windows (assuming a proper project exists):Running this shows the following output (note the "system cannot find the path specified" messages):
This is ultimately happening because Poetry assumes that it can call
%WINDIR%\System32\where.exe
to find the git executable:While I can hunt this down in an open source Python project, this type of failure is very difficult to identify in compiled executables.
Describe the solution you'd like
I want to add the
windir
environment variable to the list of default environment variables included inpass_env
, because it is just as critical asTMP
andUSERPROFILE
.Alternative Solutions
There's no alternative solution. Tox can add
windir
to the default list ofpass_env
, or developers will individually have to figure out for themselves how to resolve failures with some Windows applications run by tox.Additional context
The text was updated successfully, but these errors were encountered: