Fix calculator import error for hub_supervisor_lib.
Ensure settings_store resolves supervisor module when imported from repo-root calculator libs. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -9,6 +9,11 @@ from pathlib import Path
|
||||
DIR = Path(__file__).resolve().parent
|
||||
SETTINGS_PATH = DIR / "hub_settings.json"
|
||||
|
||||
import sys
|
||||
|
||||
if str(DIR) not in sys.path:
|
||||
sys.path.insert(0, str(DIR))
|
||||
|
||||
from hub_supervisor_lib import DEFAULT_SUPERVISOR, normalize_supervisor_settings
|
||||
|
||||
DEFAULT_DISPLAY = {
|
||||
|
||||
Reference in New Issue
Block a user