Update click_cli.py path configuration and fix config module import
Some checks failed
CLI Tests / test-cli (push) Failing after 10s
Cross-Node Transaction Testing / transaction-test (push) Successful in 3s
Deploy to Testnet / deploy-testnet (push) Successful in 1m6s
Multi-Node Stress Testing / stress-test (push) Successful in 2s
Node Failover Simulation / failover-test (push) Successful in 4s
Security Scanning / security-scan (push) Successful in 15s

- Add /opt/aitbc to sys.path for shared modules access
- Update comment to reflect both paths being added
- Change config.py import from local to aitbc_cli.config
- Rename Config to CLIConfig in import statement
This commit is contained in:
aitbc
2026-05-08 11:28:14 +02:00
parent 718b04571a
commit 60460f76da
2 changed files with 3 additions and 2 deletions

View File

@@ -7,7 +7,8 @@ Separate entry point for Click-based commands (not parser/handler architecture)
import sys import sys
from pathlib import Path from pathlib import Path
# Add /opt/aitbc/cli to Python path for commands and utils # Add /opt/aitbc and /opt/aitbc/cli to Python path for shared modules
sys.path.insert(0, str(Path("/opt/aitbc")))
sys.path.insert(0, str(Path("/opt/aitbc/cli"))) sys.path.insert(0, str(Path("/opt/aitbc/cli")))
import click import click

View File

@@ -8,7 +8,7 @@ import yaml
import json import json
from pathlib import Path from pathlib import Path
from typing import Optional, Dict, Any from typing import Optional, Dict, Any
from config import get_config, Config from aitbc_cli.config import get_config, CLIConfig
from utils import output, error, success from utils import output, error, success