fix NameError in server

This commit is contained in:
Izalia Mae 2024-04-23 00:11:22 -04:00
parent 7eba8ba68d
commit 447d7a011f
2 changed files with 3 additions and 3 deletions

4
dev.py
View file

@ -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])

View file

@ -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