mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 10:58:28 +00:00
![]() <!-- Thank you for contributing to uv! To help us out with reviewing, please consider the following: - Does this pull request include a summary of the change? (See below.) - Does this pull request include a descriptive title? - Does this pull request include references to any relevant issues? --> ## Summary Related to https://github.com/astral-sh/uv/issues/6801. Currently on Windows, uv itself will always creates a console window, even though the window could be empty if `uv run --gui-script` is used. This is due to it using the [default `console` window subsystem](https://rust-lang.github.io/rfcs/1665-windows-subsystem.html). This PR introduces a wrapper `uvw` that, similar to the existing `uvx`, invokes `uv` with the [`CREATE_NO_WINDOW`](https://learn.microsoft.com/en-us/windows/win32/procthread/process-creation-flags#:~:text=CREATE_NO_WINDOW) process creation flag on Windows, which creates child process without console window. Note that this PR does not alter any behaviors regarding `run --script` and `run --gui-script`. ## Test Plan Built and tested locally by doing something like `uvw run test.py`. |
||
---|---|---|
.. | ||
src | ||
tests/it | ||
Cargo.toml |