checkpoint(src): Codebase restructuring and import resolution complete
This commit is contained in:
@@ -8,5 +8,5 @@ active = "main"
|
||||
|
||||
[discussions.main]
|
||||
git_commit = ""
|
||||
last_updated = "2026-03-04T09:44:10"
|
||||
last_updated = "2026-03-04T10:04:31"
|
||||
history = []
|
||||
|
||||
@@ -3,10 +3,13 @@ import json
|
||||
import logging
|
||||
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__), ".."))
|
||||
if project_root not in sys.path:
|
||||
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:
|
||||
from api_hook_client import ApiHookClient
|
||||
|
||||
@@ -3,11 +3,14 @@ import json
|
||||
import logging
|
||||
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
|
||||
project_root = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
|
||||
if project_root not in sys.path:
|
||||
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:
|
||||
from api_hook_client import ApiHookClient
|
||||
|
||||
Reference in New Issue
Block a user