#!/bin/sh
set -e

case "$1" in
    configure)
        # Recompile bytecode for the installed Python version.
        # The venv was built on the build machine; .pyc files may reference
        # a different path or Python micro-version.
        if command -v py3compile >/dev/null 2>&1; then
            py3compile /opt/meshbay-common/venv/lib/ 2>/dev/null || true
        fi
        ;;
esac

#DEBHELPER#
