"""Silo addon — console initialization. Adds the shared silo-client package to sys.path so that ``import silo_client`` works from silo_commands.py and other modules. """ import os import sys _mod_dir = os.path.dirname(os.path.abspath(__file__)) _client_dir = os.path.join(_mod_dir, "silo-client") if os.path.isdir(_client_dir) and _client_dir not in sys.path: sys.path.insert(0, _client_dir)