snowglobe 0.4.7__tar.gz → 0.4.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {snowglobe-0.4.7/src/snowglobe.egg-info → snowglobe-0.4.8}/PKG-INFO +1 -1
- {snowglobe-0.4.7 → snowglobe-0.4.8}/pyproject.toml +1 -1
- {snowglobe-0.4.7 → snowglobe-0.4.8}/src/snowglobe/client/src/app.py +13 -1
- {snowglobe-0.4.7 → snowglobe-0.4.8/src/snowglobe.egg-info}/PKG-INFO +1 -1
- {snowglobe-0.4.7 → snowglobe-0.4.8}/LICENSE +0 -0
- {snowglobe-0.4.7 → snowglobe-0.4.8}/README.md +0 -0
- {snowglobe-0.4.7 → snowglobe-0.4.8}/setup.cfg +0 -0
- {snowglobe-0.4.7 → snowglobe-0.4.8}/src/snowglobe/client/__init__.py +0 -0
- {snowglobe-0.4.7 → snowglobe-0.4.8}/src/snowglobe/client/src/cli.py +0 -0
- {snowglobe-0.4.7 → snowglobe-0.4.8}/src/snowglobe/client/src/cli_utils.py +0 -0
- {snowglobe-0.4.7 → snowglobe-0.4.8}/src/snowglobe/client/src/config.py +0 -0
- {snowglobe-0.4.7 → snowglobe-0.4.8}/src/snowglobe/client/src/models.py +0 -0
- {snowglobe-0.4.7 → snowglobe-0.4.8}/src/snowglobe/client/src/project_manager.py +0 -0
- {snowglobe-0.4.7 → snowglobe-0.4.8}/src/snowglobe/client/src/stats.py +0 -0
- {snowglobe-0.4.7 → snowglobe-0.4.8}/src/snowglobe/client/src/utils.py +0 -0
- {snowglobe-0.4.7 → snowglobe-0.4.8}/src/snowglobe.egg-info/SOURCES.txt +0 -0
- {snowglobe-0.4.7 → snowglobe-0.4.8}/src/snowglobe.egg-info/dependency_links.txt +0 -0
- {snowglobe-0.4.7 → snowglobe-0.4.8}/src/snowglobe.egg-info/entry_points.txt +0 -0
- {snowglobe-0.4.7 → snowglobe-0.4.8}/src/snowglobe.egg-info/requires.txt +0 -0
- {snowglobe-0.4.7 → snowglobe-0.4.8}/src/snowglobe.egg-info/top_level.txt +0 -0
- {snowglobe-0.4.7 → snowglobe-0.4.8}/tests/test_app.py +0 -0
- {snowglobe-0.4.7 → snowglobe-0.4.8}/tests/test_cli.py +0 -0
- {snowglobe-0.4.7 → snowglobe-0.4.8}/tests/test_config.py +0 -0
- {snowglobe-0.4.7 → snowglobe-0.4.8}/tests/test_heartbeat.py +0 -0
- {snowglobe-0.4.7 → snowglobe-0.4.8}/tests/test_utils.py +0 -0
@@ -5,6 +5,7 @@ import importlib.util
|
|
5
5
|
import json
|
6
6
|
import logging
|
7
7
|
import os
|
8
|
+
import sys
|
8
9
|
import time
|
9
10
|
import traceback
|
10
11
|
from collections import defaultdict, deque
|
@@ -685,7 +686,17 @@ async def lifespan(app: FastAPI):
|
|
685
686
|
"agent_wrapper", agent_file_path
|
686
687
|
)
|
687
688
|
agent_module = importlib.util.module_from_spec(spec)
|
688
|
-
|
689
|
+
|
690
|
+
# Add current directory to path
|
691
|
+
sys_path_backup = sys.path.copy()
|
692
|
+
current_dir = os.getcwd()
|
693
|
+
if current_dir not in sys.path:
|
694
|
+
sys.path.insert(0, current_dir)
|
695
|
+
|
696
|
+
try:
|
697
|
+
spec.loader.exec_module(agent_module)
|
698
|
+
finally:
|
699
|
+
sys.path = sys_path_backup
|
689
700
|
|
690
701
|
if not hasattr(agent_module, "process_scenario"):
|
691
702
|
LOGGER.warning(
|
@@ -699,6 +710,7 @@ async def lifespan(app: FastAPI):
|
|
699
710
|
}
|
700
711
|
|
701
712
|
except Exception as e:
|
713
|
+
traceback.print_exc()
|
702
714
|
LOGGER.error(f"Error loading agent {filename}: {e}")
|
703
715
|
continue
|
704
716
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|