from pathlib import Path 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}' VIDEO_HEIGHT = 1920 VIDEO_WIDTH = 1080 BASE = Path(__file__).parent.parent DS = BASE / '@DS' DOC = BASE / 'doc' CONFIG = BASE / 'config' DS.mkdir(exist_ok=True, parents=True) DOC.mkdir(exist_ok=True, parents=True) CONFIG.mkdir(exist_ok=True, parents=True) CONFIG_FOLDER = BASE / 'config' LAST_CONFIG = BASE / 'config' / 'last_imaging_config.json' CONFIG_FOLDER.mkdir(exist_ok=True) if __name__ == '__main__': print(BASE)