Skip to content

fix(embed): resolve uv venv stub pythonw to real GUI-subsystem interp… - #3103

Closed
asorry75 wants to merge 1 commit into
vectorize-io:mainfrom
asorry75:fix/pythonw-stub-resolution
Closed

fix(embed): resolve uv venv stub pythonw to real GUI-subsystem interp…#3103
asorry75 wants to merge 1 commit into
vectorize-io:mainfrom
asorry75:fix/pythonw-stub-resolution

Conversation

@asorry75

Copy link
Copy Markdown

…reter

On Windows, uv venv stubs are CUI launchers that internally CreateProcess to the real python.exe. CREATE_NO_WINDOW only applies to the stub, causing a console window flash on daemon startup.

Add _resolve_real_pythonw() to detect uv stubs via pyvenv.cfg and resolve the real GUI-subsystem pythonw.exe. Add _inject_venv_paths() to populate PYTHONPATH with the venv .pth entries. Update _windows_gui_interpreter() return type and _find_api_command() call site.

+72/-7 lines

…reter

On Windows, uv venv stubs are CUI launchers that internally CreateProcess
to the real python.exe. CREATE_NO_WINDOW only applies to the stub,
causing a console window flash on daemon startup.

Add _resolve_real_pythonw() to detect uv stubs via pyvenv.cfg and
resolve the real GUI-subsystem pythonw.exe. Add _inject_venv_paths()
to populate PYTHONPATH with the venv .pth entries. Update
_windows_gui_interpreter() return type and _find_api_command() call site.

+72/-7 lines
@asorry75 asorry75 closed this Aug 2, 2026
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.

1 participant