from pathlib import Path SOCKET1 = '127.0.0.1:5003' VIDEO_HEIGHT = 1920 VIDEO_WIDTH = 1080 BASE = Path(__file__).parent.parent DS = BASE / '@DS' DOC = BASE / 'doc' DS.mkdir(exist_ok=True, parents=True) DOC.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)