Skip to content

Commit 85c50d1

Browse files
joshwalker9115joelspadin
authored andcommitted
fix: replaces typer.launch with webbrowser.open
1 parent cc89ad4 commit 85c50d1

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

zmk/commands/download.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
"zmk download" command.
33
"""
44

5+
import webbrowser
6+
57
import typer
68

79
from ..config import get_config
@@ -16,7 +18,7 @@ def download(ctx: typer.Context) -> None:
1618

1719
actions_url = _get_actions_url(repo)
1820

19-
typer.launch(actions_url)
21+
webbrowser.open(actions_url)
2022

2123

2224
def _get_actions_url(repo: Repo):

zmk/commands/init.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import platform
66
import shutil
77
import subprocess
8+
import webbrowser
89
from pathlib import Path
910
from urllib.parse import urlparse
1011

@@ -115,7 +116,7 @@ def _get_repo_url():
115116
width=TEXT_WIDTH,
116117
)
117118
input()
118-
typer.launch(TEMPLATE_URL)
119+
webbrowser.open(TEMPLATE_URL)
119120

120121
url = UrlPrompt.ask("Repository URL")
121122
return url

0 commit comments

Comments
 (0)