mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-30 13:13:59 +00:00
Update paths in sdk helpers
This commit is contained in:
@@ -9,13 +9,13 @@ import dotenv
|
||||
import openbb_terminal.config_terminal as cfg
|
||||
from openbb_terminal.base_helpers import load_env_vars, strtobool
|
||||
from openbb_terminal.core.config.paths import USER_ENV_FILE
|
||||
from openbb_terminal.rich_config import console
|
||||
from openbb_terminal.sdk_core.sdk_init import (
|
||||
from openbb_terminal.core.sdk.sdk_init import (
|
||||
FORECASTING_TOOLKIT_ENABLED,
|
||||
FORECASTING_TOOLKIT_WARNING,
|
||||
OPTIMIZATION_TOOLKIT_ENABLED,
|
||||
OPTIMIZATION_TOOLKIT_WARNING,
|
||||
)
|
||||
from openbb_terminal.rich_config import console
|
||||
|
||||
if not FORECASTING_TOOLKIT_ENABLED and not load_env_vars(
|
||||
"OPENBB_DISABLE_FORECASTING_WARNING", strtobool, False
|
||||
@@ -340,8 +340,8 @@ from openbb_terminal.helper_classes import TerminalStyle # noqa: F401
|
||||
from openbb_terminal.reports import widget_helpers as widgets # noqa: F401
|
||||
from openbb_terminal.reports.reports_controller import ReportController
|
||||
|
||||
import openbb_terminal.sdk_core.sdk_init as lib
|
||||
from openbb_terminal.sdk_core import (
|
||||
import openbb_terminal.core.sdk.sdk_init as lib
|
||||
from openbb_terminal.core.sdk import (
|
||||
controllers as ctrl,
|
||||
models as model,
|
||||
)
|
||||
|
||||
@@ -5,10 +5,10 @@ from typing import Any, Callable, Dict, ForwardRef, List, Optional
|
||||
|
||||
import pandas as pd
|
||||
|
||||
import openbb_terminal.sdk_core.sdk_init as lib
|
||||
import openbb_terminal.core.sdk.sdk_init as lib
|
||||
from openbb_terminal.core.config.paths import PACKAGE_DIRECTORY
|
||||
from openbb_terminal.core.sdk.sdk_helpers import clean_attr_desc
|
||||
from openbb_terminal.rich_config import console
|
||||
from openbb_terminal.sdk_core.sdk_helpers import clean_attr_desc
|
||||
|
||||
|
||||
def get_signature_parameters(
|
||||
@@ -149,10 +149,10 @@ class Trailmap:
|
||||
def get_trailmaps(sort: bool = False) -> List[Trailmap]:
|
||||
trailmaps = []
|
||||
|
||||
MAP_PATH = PACKAGE_DIRECTORY / "sdk_core" / "trail_map.csv"
|
||||
MAP_FORECASTING_PATH = PACKAGE_DIRECTORY / "sdk_core" / "trail_map_forecasting.csv"
|
||||
MAP_PATH = PACKAGE_DIRECTORY / "core/sdk" / "trail_map.csv"
|
||||
MAP_FORECASTING_PATH = PACKAGE_DIRECTORY / "core/sdk" / "trail_map_forecasting.csv"
|
||||
MAP_OPTIMIZATION_PATH = (
|
||||
PACKAGE_DIRECTORY / "sdk_core" / "trail_map_optimization.csv"
|
||||
PACKAGE_DIRECTORY / "core/sdk" / "trail_map_optimization.csv"
|
||||
)
|
||||
|
||||
def load_csv(path: Optional[Path] = None) -> Dict[str, Dict[str, str]]:
|
||||
|
||||
Reference in New Issue
Block a user