drone path fixes
This commit is contained in:
@@ -18,7 +18,6 @@ from dataclasses import dataclass
|
||||
_MODULE_REGISTRY: dict[str, str] = {
|
||||
"drone": "aipass.drone.drone_adapter",
|
||||
"seedgo": "aipass.seedgo.drone_adapter",
|
||||
"spawn": "aipass.spawn.drone_adapter",
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ from aipass.spawn.apps.handlers.registry import (
|
||||
)
|
||||
|
||||
# Repo root — resolved from spawn package location
|
||||
_REPO_ROOT = Path(__file__).parents[4] # src/aipass/spawn/apps/handlers -> repo root
|
||||
_REPO_ROOT = Path(__file__).parents[5] # handlers/apps/spawn/aipass/src/AIPass
|
||||
|
||||
# Branches that cannot be deleted (critical infrastructure)
|
||||
_PROTECTED_BRANCHES = {"spawn", "devpulse", "drone"}
|
||||
|
||||
@@ -26,7 +26,7 @@ from aipass.spawn.apps.handlers.registry import (
|
||||
)
|
||||
|
||||
# Repo root — resolved from spawn package location
|
||||
_REPO_ROOT = Path(__file__).parents[4] # src/aipass/spawn/apps/handlers -> repo root
|
||||
_REPO_ROOT = Path(__file__).parents[5] # handlers/apps/spawn/aipass/src/AIPass
|
||||
|
||||
|
||||
# =============================================================================
|
||||
|
||||
@@ -20,7 +20,7 @@ from pathlib import Path
|
||||
from aipass.prax.apps.modules.logger import system_logger as logger
|
||||
|
||||
# Repo root — resolved from spawn package location
|
||||
_REPO_ROOT = Path(__file__).parents[4] # src/aipass/spawn/apps/handlers -> repo root
|
||||
_REPO_ROOT = Path(__file__).parents[5] # handlers/apps/spawn/aipass/src/AIPass
|
||||
|
||||
# Path to template_owners.json
|
||||
_TEMPLATE_OWNERS_PATH = (
|
||||
|
||||
@@ -36,7 +36,7 @@ from aipass.spawn.apps.handlers.placeholders import build_replacements_dict, rep
|
||||
from aipass.spawn.apps.handlers.registry import find_registry, load_registry
|
||||
|
||||
# Repo root — resolved from spawn package location
|
||||
_REPO_ROOT = Path(__file__).parents[4] # src/aipass/spawn/apps/handlers -> repo root
|
||||
_REPO_ROOT = Path(__file__).parents[5] # handlers/apps/spawn/aipass/src/AIPass
|
||||
|
||||
|
||||
# =============================================================================
|
||||
|
||||
Reference in New Issue
Block a user