e4dcfc49aa
Tests / Import Check (Python 3.13) (push) Has been cancelled
Tests / Import Check (Python 3.14) (push) Has been cancelled
Tests / Python Tests (Python 3.11) (push) Has been cancelled
Tests / Python Tests (Python 3.12) (push) Has been cancelled
Tests / Python Tests (Python 3.14) (push) Has been cancelled
Tests / Test Summary (push) Has been cancelled
Tests / Lint and Format (push) Has been cancelled
Tests / Web Node Tests (push) Has been cancelled
Tests / Import Check (Python 3.11) (push) Has been cancelled
Tests / Import Check (Python 3.12) (push) Has been cancelled
Tests / Python Tests (Python 3.13) (push) Has been cancelled
33 lines
622 B
Python
33 lines
622 B
Python
"""
|
|
Setup Service
|
|
=============
|
|
|
|
System setup and initialization for DeepTutor.
|
|
|
|
Port configuration is done via data/user/settings/system.json.
|
|
|
|
Usage:
|
|
from deeptutor.services.setup import init_user_directories, get_backend_port
|
|
|
|
# Initialize user directories
|
|
init_user_directories()
|
|
|
|
# Get server ports
|
|
backend_port = get_backend_port()
|
|
frontend_port = get_frontend_port()
|
|
"""
|
|
|
|
from .init import (
|
|
get_backend_port,
|
|
get_frontend_port,
|
|
get_ports,
|
|
init_user_directories,
|
|
)
|
|
|
|
__all__ = [
|
|
"init_user_directories",
|
|
"get_backend_port",
|
|
"get_frontend_port",
|
|
"get_ports",
|
|
]
|