Files
DeepTutor/scripts/stop_web.py
Bingxi Zhao (Frank) 49661211ce prepare v1.3.5 release
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-02 20:16:07 +08:00

25 lines
555 B
Python

#!/usr/bin/env python
"""Stop processes recorded by scripts/start_web.py."""
from __future__ import annotations
from pathlib import Path
import sys
PROJECT_ROOT = Path(__file__).resolve().parent.parent
SCRIPTS_DIR = PROJECT_ROOT / "scripts"
if str(SCRIPTS_DIR) not in sys.path:
sys.path.insert(0, str(SCRIPTS_DIR))
if str(PROJECT_ROOT) not in sys.path:
sys.path.insert(0, str(PROJECT_ROOT))
from start_web import stop_recorded_processes # noqa: E402
def main() -> None:
stop_recorded_processes()
if __name__ == "__main__":
main()