-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Open
Description
Environment:
- Python version: 3,13
- Click version: 8.3.1
- OS: Windows (11)
click.launch() (precisely: click._termui_impl.open_url()) does not work for (non local) urls on Windows.
e.g. click.launch("http://www.python.org") does not work.
The patch:
--- click/_termui_impl.py.org 2025-12-03 16:55:34.202910500 +0100
+++ click/_termui_impl.py 2025-12-03 21:44:31.351834200 +0100
@@ -707,7 +707,7 @@
args.append("")
args.append(url)
try:
- return subprocess.call(args)
+ return subprocess.call(args, shell=True)
except OSError:
# Command not found
return 127Metadata
Metadata
Assignees
Labels
No labels