Фикс состояния
This commit is contained in:
1
tests/pipeline_setup_v3/cli/__init__.py
Normal file
1
tests/pipeline_setup_v3/cli/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
# CLI entrypoints for pipeline_setup_v3.
|
||||
22
tests/pipeline_setup_v3/cli/index_repo.py
Normal file
22
tests/pipeline_setup_v3/cli/index_repo.py
Normal file
@@ -0,0 +1,22 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
_agent_root = Path(__file__).resolve().parents[3]
|
||||
if str(_agent_root) not in sys.path:
|
||||
sys.path.insert(0, str(_agent_root))
|
||||
_src = _agent_root / "src"
|
||||
if _src.exists() and str(_src) not in sys.path:
|
||||
sys.path.insert(0, str(_src))
|
||||
|
||||
|
||||
def main() -> int:
|
||||
argv = ["reindex", *sys.argv[1:]]
|
||||
from tests.pipeline_setup.suite_02_pipeline.pipeline_intent_rag.cli import main as cli_main
|
||||
|
||||
return cli_main(argv)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
raise SystemExit(main())
|
||||
Reference in New Issue
Block a user