🐛 fix(__main__.py): ignore type error for multiprocess import
🐛 fix(__main__.py): rename path variable to frontend_path for clarity
The first change fixes a type error for the multiprocess import. The second change renames the path variable to frontend_path to improve clarity and readability of the code.
This commit is contained in:
parent
2482a230bb
commit
58fa3b8dc0
1 changed files with 3 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import sys
|
||||
import time
|
||||
import httpx
|
||||
from multiprocess import Process, cpu_count
|
||||
from multiprocess import Process, cpu_count # type: ignore
|
||||
import platform
|
||||
from pathlib import Path
|
||||
|
||||
|
|
@ -109,8 +109,8 @@ def serve(
|
|||
app = create_app()
|
||||
# get the directory of the current file
|
||||
if not path:
|
||||
path = Path(__file__).parent
|
||||
static_files_dir = path / "frontend"
|
||||
frontend_path = Path(__file__).parent
|
||||
static_files_dir = frontend_path / "frontend"
|
||||
else:
|
||||
static_files_dir = Path(path)
|
||||
app.mount(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue