Skip to content

Conversation

wrongontheinternet
Copy link
Contributor

execvpe works differently on Windows.

See python/cpython#63323 (comment) for more information, tldr: Windows returns control immediately rather than once the executed command has finished.

This rolls back #523 just for Windows, and resolves issue #536.

Flake8 passes, and pytest breaks because AFAICT the tests are not designed for running on Windows. It resolves the problems I am seeing on Windows 10 & 11 on x64. This is my first contribution, please let me know if there's anything I should investigate further.

execvpe works differently on Windows, see
python/cpython#63323 (comment)
for more information, tldr: Windows returns control immediately
rather than once the executed command has finished.
@theskumar theskumar changed the title Fix dotenv run on Windows fix(cli): issue with execvpe on Windows Jun 24, 2025
@theskumar
Copy link
Owner

@wrongontheinternet, thank you. I'll merge this in.

I'm not able to test this locally on Windows or on CI.

I'm trying to get the CI to work with Windows, so we have more comprehensive tests on Windows, so these don't regress. Some hard test dependencies don't seem to work on Windows, causing a bit refactor of the test-suite.

main...win-support

@theskumar theskumar merged commit 9d85edb into theskumar:main Jun 24, 2025
7 checks passed
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.

2 participants