-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Regression: click.launch()
broken on Windows in version 8.1.8
#2868
Comments
We do not want to use |
Sorry, but I’m not sure I understand you. The API has been working since the first version of Click (more than 10 years), and the documentation highlights the use of click.launch() in multiple places for opening web URLs. See: https://click.palletsprojects.com/en/stable/utils/#launching-applications Could you revert that part of the code if there is no solution that avoids breaking an API that has worked for multiple years? The launch function is a high-level abstraction and should not expose the end developer to OS-related technical issues. |
I'm not saying this isn't a bug, I'm saying we don't want to use |
I also ran in to this. Here's where this was introduced: #1477 I believe it would work to use the same error handling for windows as this diff adds for Linux: https://github.com/pallets/click/blob/stable/src/click/_termui_impl.py#L673-L679, with a fallback to webbrowser.open() |
click.launch("https://click.palletsprojects.com/en/stable/")
results in[WinError 2] The system cannot find the file specified
on Windows due to an incorrect migration fromos.system
tosubprocess.call
. Refer to the official documentation:Proposed fix ivankravets@fb59f90
Environment:
The text was updated successfully, but these errors were encountered: