#!/bin/sh
# Launcher for the relocatable kicad-cli bundle: KiCad has its data directory compiled
# in (/opt/kicad/share/kicad), so point it at the one next to this script.
here="$(cd "$(dirname "$0")" && pwd)"
export KICAD_STOCK_DATA_HOME="${KICAD_STOCK_DATA_HOME:-$here/share/kicad}"
exec "$here/bin/kicad-cli" "$@"
