fix: Use venv Python for scripts, fix import order in figma-sync
Some checks failed
DSS Project Analysis / dss-context-update (push) Has been cancelled

- Move sys.path modification before dss imports in figma-sync.py
- Add missing Dict type hint import
- Add PYTHON variable to dss-init.sh using venv if available
- Update script calls to use $PYTHON instead of python3

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2025-12-12 06:27:18 -03:00
parent db5be5ce37
commit 481c3d39ff
2 changed files with 16 additions and 8 deletions

View File

@@ -16,15 +16,16 @@ import json
import os
import sys
from pathlib import Path
from typing import Dict
from dss.ingest.base import TokenCollection
from dss.ingest.sources.figma import FigmaTokenSource
# Ensure the project root is in the Python path
# Ensure the project root is in the Python path BEFORE importing dss modules
DSS_ROOT = Path(__file__).parent.parent
if str(DSS_ROOT) not in sys.path:
sys.path.insert(0, str(DSS_ROOT))
from dss.ingest.base import TokenCollection
from dss.ingest.sources.figma import FigmaTokenSource
# =============================================================================
# CONFIGURATION