Some checks failed
CLI Tests / test-cli (push) Has been cancelled
Cross-Node Transaction Testing / transaction-test (push) Has been cancelled
Deploy to Testnet / deploy-testnet (push) Has been cancelled
Multi-Node Stress Testing / stress-test (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
- Moved core/ directory to aitbc_cli/core/ to make it a proper subpackage - Updated aitbc_cli.py to load from new path - Simplified aitbc_cli/__init__.py to use normal import instead of spec_from_file_location - Updated all core imports to use aitbc_cli.core prefix - Copied utils files (wallet_daemon_client, error_handling, crypto_utils, subprocess) to aitbc_cli/utils/ - Fixed wallet list command to work with new structure - This fixes ModuleNotFoundError for aitbc_cli.core submodules
11 lines
389 B
Python
11 lines
389 B
Python
"""Import setup for AITBC CLI to access coordinator-api services."""
|
|
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
def ensure_coordinator_api_imports():
|
|
"""Ensure coordinator-api src directory is on sys.path."""
|
|
_src_path = Path(__file__).resolve().parent.parent.parent / 'apps' / 'coordinator-api' / 'src'
|
|
if str(_src_path) not in sys.path:
|
|
sys.path.insert(0, str(_src_path))
|