Skip to content

Commit

Permalink
fix(hyfi): replace __hydra_config__ with __global_hyfi__
Browse files Browse the repository at this point in the history
  • Loading branch information
entelecheia committed Jul 22, 2023
1 parent ee4af9d commit 17ffe6c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/hyfi/composer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
from pydantic import BaseModel, ConfigDict, PrivateAttr

from hyfi.core import (
__about__,
__hydra_config__,
__global_hyfi__,
__hydra_default_config_group_value__,
__hydra_version_base__,
)
Expand Down Expand Up @@ -206,7 +205,7 @@ def hydra_compose(
overrides: Optional[List[str]] = None,
):
is_initialized = GlobalHydra.instance().is_initialized() # type: ignore
config_module = config_module or __hydra_config__.hyfi_config_module
config_module = config_module or __global_hyfi__.hyfi_config_module
logger.debug("config_module: %s", config_module)
if is_initialized:
# Hydra is already initialized.
Expand All @@ -215,7 +214,7 @@ def hydra_compose(
else:
with hyfi_hydra.initialize_config(
config_module=config_module,
config_dir=__hydra_config__.hyfi_user_config_path,
config_dir=__global_hyfi__.hyfi_user_config_path,
version_base=__hydra_version_base__,
):
cfg = hydra.compose(config_name=root_config_name, overrides=overrides)
Expand Down

0 comments on commit 17ffe6c

Please sign in to comment.