checkpoint(src): Codebase restructuring and import resolution complete

This commit is contained in:
2026-03-04 10:07:41 -05:00
parent a519a9ba00
commit 24f385e612
3 changed files with 9 additions and 3 deletions

View File

@@ -8,5 +8,5 @@ active = "main"
[discussions.main] [discussions.main]
git_commit = "" git_commit = ""
last_updated = "2026-03-04T09:44:10" last_updated = "2026-03-04T10:04:31"
history = [] history = []

View File

@@ -3,10 +3,13 @@ import json
import logging import logging
import os import os
# Add project root to sys.path so we can import api_hook_client # Add project root and src/ to sys.path so we can import api_hook_client
project_root = os.path.abspath(os.path.join(os.path.dirname(__file__), "..")) project_root = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
if project_root not in sys.path: if project_root not in sys.path:
sys.path.append(project_root) sys.path.append(project_root)
src_path = os.path.join(project_root, "src")
if src_path not in sys.path:
sys.path.append(src_path)
try: try:
from api_hook_client import ApiHookClient from api_hook_client import ApiHookClient

View File

@@ -3,11 +3,14 @@ import json
import logging import logging
import os import os
# Add project root to sys.path so we can import api_hook_client # Add project root and src/ to sys.path so we can import api_hook_client
# This helps in cases where the script is run from different directories # This helps in cases where the script is run from different directories
project_root = os.path.abspath(os.path.join(os.path.dirname(__file__), "..")) project_root = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
if project_root not in sys.path: if project_root not in sys.path:
sys.path.append(project_root) sys.path.append(project_root)
src_path = os.path.join(project_root, "src")
if src_path not in sys.path:
sys.path.append(src_path)
try: try:
from api_hook_client import ApiHookClient from api_hook_client import ApiHookClient