Skip to content
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

Allow execution of pyw files on Unix #9759

Merged
merged 1 commit into from
Dec 10, 2024
Merged

Allow execution of pyw files on Unix #9759

merged 1 commit into from
Dec 10, 2024

Conversation

zanieb
Copy link
Member

@zanieb zanieb commented Dec 10, 2024

I don't see any real reason to forbid executing these in a cross-platform way

❯ echo "print('hello world')" > test.pyw
❯ uv run test.pyw
error: Failed to spawn: `test.pyw`
  Caused by: No such file or directory (os error 2)
❯ cargo run -q -- run test.pyw
hello world

Closes #9757

@zanieb zanieb added the enhancement New feature or improvement to existing functionality label Dec 10, 2024
@zanieb zanieb requested a review from konstin December 10, 2024 00:57
@zanieb zanieb marked this pull request as ready for review December 10, 2024 00:58
@charliermarsh charliermarsh merged commit 5e5635c into main Dec 10, 2024
64 checks passed
@charliermarsh charliermarsh deleted the zb/pyw-unix branch December 10, 2024 02:52
zanieb added a commit that referenced this pull request Dec 10, 2024
To match `uv run foo.pyw` behavior from
#9759
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or improvement to existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

uv run fail to run pyw scripts on Mac (and probably Linux) with a confusing message
2 participants