co-maps/tools/python/test_server/stop_server.py
2025-11-22 13:58:55 +01:00

7 lines
134 B
Python
Executable file

#!/usr/bin/env python3
import subprocess
from server.config import PORT
subprocess.call(['curl', f'http://localhost:{PORT}/kill'])