#!/usr/bin/env python3 import os import sys contrib = os.path.abspath(os.path.dirname(__file__)) merchant_spa_ver_lock = open(contrib + "/" + "merchant-spa.lock").read().strip() merchant_spa_ver_prebuilt = open(contrib + "/" + "wallet-core/backoffice/version.txt").read().strip() if merchant_spa_ver_lock != merchant_spa_ver_prebuilt: print("merchant SPA version mismatch") print("lockfile has version", merchant_spa_ver_lock) print("prebuilt has version", merchant_spa_ver_prebuilt) sys.exit(1)