fix NameError in server
This commit is contained in:
parent
7eba8ba68d
commit
447d7a011f
4
dev.py
4
dev.py
|
@ -22,8 +22,8 @@ try:
|
|||
|
||||
except ImportError:
|
||||
print("Installing missing dependencies...")
|
||||
deps = " ".join(["build", "click", "watchfiles"])
|
||||
subprocess.run(shlex.split(f"{sys.executable} -m pip install {deps}"))
|
||||
deps = ["build", "click", "watchfiles"]
|
||||
subprocess.run([sys.executable, "-m", "pip", "install", *deps])
|
||||
|
||||
print("Restarting script...")
|
||||
subprocess.run([sys.executable, *sys.argv])
|
||||
|
|
|
@ -11,6 +11,7 @@ import typing
|
|||
from asyncio.exceptions import CancelledError
|
||||
from blib import AsyncTransport
|
||||
from pathlib import Path
|
||||
from typing import Any
|
||||
|
||||
from .router import Router
|
||||
|
||||
|
@ -23,7 +24,6 @@ from ..misc import BaseApp
|
|||
if typing.TYPE_CHECKING:
|
||||
from asyncio import StreamReader, StreamWriter
|
||||
from collections.abc import Callable
|
||||
from typing import Any
|
||||
from .router import RouteHandler
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue