We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7036369 commit de65939Copy full SHA for de65939
sdk/python/flet/flet.py
@@ -3,6 +3,7 @@
3
import os
4
import signal
5
import socket
6
+import subprocess
7
import tarfile
8
import tempfile
9
import threading
sdk/python/flet/utils.py
@@ -1,7 +1,7 @@
1
2
import platform
-import subprocess
import sys
+import webbrowser
def is_windows():
@@ -47,10 +47,7 @@ def get_arch():
47
48
49
def open_in_browser(url):
50
- if is_windows():
51
- subprocess.run(["explorer.exe", url])
52
- elif is_macos():
53
- subprocess.run(["open", url])
+ webbrowser.open(url)
54
55
56
# https://stackoverflow.com/questions/377017/test-if-executable-exists-in-python
0 commit comments