wip
This commit is contained in:
parent
4d194fec00
commit
e36552e336
1 changed files with 6 additions and 3 deletions
|
|
@ -16,6 +16,8 @@ import queue
|
||||||
import socket
|
import socket
|
||||||
import threading
|
import threading
|
||||||
|
|
||||||
|
import platformdirs
|
||||||
|
|
||||||
ready = threading.Event()
|
ready = threading.Event()
|
||||||
exception_holder = queue.Queue()
|
exception_holder = queue.Queue()
|
||||||
|
|
||||||
|
|
@ -24,13 +26,14 @@ APP_NAME = "YTPTube"
|
||||||
try:
|
try:
|
||||||
import webview # type: ignore
|
import webview # type: ignore
|
||||||
except ImportError as e:
|
except ImportError as e:
|
||||||
msg = "Please run 'pipenv install pywebview[qt]' package to run YTPTube in native mode."
|
if "nt" == os.name:
|
||||||
|
msg = "Please run 'uv pip install pywebview[edgechromium]' package to run YTPTube in native mode."
|
||||||
|
else:
|
||||||
|
msg = "Please run 'uv pip install pywebview[qt]' package to run YTPTube in native mode."
|
||||||
raise ImportError(msg) from e
|
raise ImportError(msg) from e
|
||||||
|
|
||||||
|
|
||||||
def set_env():
|
def set_env():
|
||||||
import platformdirs
|
|
||||||
|
|
||||||
dct = {}
|
dct = {}
|
||||||
|
|
||||||
if not os.getenv("YTP_CONFIG_PATH"):
|
if not os.getenv("YTP_CONFIG_PATH"):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue