flandre/src/config.py

27 lines
694 B
Python
Raw Normal View History

2025-01-13 14:21:01 +08:00
from pathlib import Path
2025-01-19 18:27:26 +08:00
PLAYBACK_SOCKET_PORT = 5003
PLAYBACK_SOCKET = f'127.0.0.1:{PLAYBACK_SOCKET_PORT}'
LIVE_SOCKET_IP = '11.6.1.66'
LIVE_REP_SOCKET_PORT = 5556
LIVE_SOCKET = f'{LIVE_SOCKET_IP}:5555'
LIVE_REP_SOCKET = f'{LIVE_SOCKET_IP}:{LIVE_REP_SOCKET_PORT}'
2025-01-13 14:21:01 +08:00
VIDEO_HEIGHT = 1920
VIDEO_WIDTH = 1080
BASE = Path(__file__).parent.parent
DS = BASE / '@DS'
DOC = BASE / 'doc'
2025-01-19 18:27:26 +08:00
CONFIG = BASE / 'config'
2025-01-13 14:21:01 +08:00
DS.mkdir(exist_ok=True, parents=True)
DOC.mkdir(exist_ok=True, parents=True)
2025-01-19 18:27:26 +08:00
CONFIG.mkdir(exist_ok=True, parents=True)
2025-01-13 14:21:01 +08:00
CONFIG_FOLDER = BASE / 'config'
LAST_CONFIG = BASE / 'config' / 'last_imaging_config.json'
CONFIG_FOLDER.mkdir(exist_ok=True)
if __name__ == '__main__':
2025-01-19 18:27:26 +08:00
print(BASE)