Load tracerite for devserver script too.

This commit is contained in:
2026-08-31 19:23:07 +00:00
parent 9c51b89226
commit 1287ba4077
+3
View File
@@ -9,6 +9,8 @@ import sys
from contextlib import suppress from contextlib import suppress
from pathlib import Path from pathlib import Path
import tracerite
# Import util.py from scripts/fastapi-vue (not a package, so we adjust sys.path) # Import util.py from scripts/fastapi-vue (not a package, so we adjust sys.path)
sys.path.insert(0, str(Path(__file__).with_name("fastapi-vue"))) sys.path.insert(0, str(Path(__file__).with_name("fastapi-vue")))
from devutil import ( from devutil import (
@@ -55,6 +57,7 @@ async def run_devserver(
def main() -> None: def main() -> None:
"""Parse CLI arguments and run the devserver.""" """Parse CLI arguments and run the devserver."""
tracerite.load()
parser = argparse.ArgumentParser( parser = argparse.ArgumentParser(
description="Run Vite and FastAPI development servers", description="Run Vite and FastAPI development servers",
formatter_class=argparse.RawDescriptionHelpFormatter, formatter_class=argparse.RawDescriptionHelpFormatter,