Move package.xml from freecad/ to mod root following the standard addon layout used by sdk, gears, datums, and solver. Add root Init.py (sys.path setup for silo-client) and InitGui.py that consolidates all Silo GUI initialization: - SiloWorkbench class and registration - Silo overlay context registration - Document observer for .kc tree building - Auth and activity dock panels via kindred_sdk - First-start settings check - Start page override - kindred:// URL handler This decouples Silo initialization from src/Mod/Create/InitGui.py, which previously held five Silo-specific deferred setup functions.
14 lines
401 B
Python
14 lines
401 B
Python
"""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)
|