def check_existing_version(install_path: Path) -> str:
    compose_path = (install_path / 'docker-compose.yml')
    compose = yaml.load(compose_path.read_text(), Loader=yaml.SafeLoader)
    version = compose['services']['core']['image'].split(':')[(- 1)]
    version = ('v' + version)
    return version
def check_existing_version(install_path: Path) -> str:
    compose_path = (install_path / 'docker-compose.yml')
    compose = yaml.load(compose_path.read_text(), Loader=yaml.SafeLoader)
    version = compose['services']['core']['image'].split(':')[(- 1)]
    version = ('v' + version)
    return version