Skip to content

Commit

Permalink
feat(hyfi): add app path and version resolvers
Browse files Browse the repository at this point in the history
  • Loading branch information
entelecheia committed Jul 22, 2023
1 parent 2288a25 commit 2352c56
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/hyfi/main/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
import hydra
from omegaconf import DictConfig, OmegaConf

from hyfi.about import __version__
from hyfi.about import __hyfi_version__
from hyfi.cached_path import cached_path
from hyfi.composer import Composer, SpecialKeys
from hyfi.copier import Copier
from hyfi.core import __home_path__, __hyfi_path__
from hyfi.core import __app_path__, __app_version__, __home_path__, __hyfi_path__
from hyfi.core.config import __global_config__, __search_package_path__
from hyfi.dotenv import DotEnvConfig
from hyfi.graphics import GRAPHICs
Expand All @@ -37,7 +37,10 @@


OmegaConf.register_new_resolver("__hyfi_path__", __hyfi_path__)
OmegaConf.register_new_resolver("__version__", __version__)
OmegaConf.register_new_resolver("__hyfi_version__", __hyfi_version__)
OmegaConf.register_new_resolver("__app_path__", __app_path__)
OmegaConf.register_new_resolver("__app_version__", __app_version__)
OmegaConf.register_new_resolver("__version__", __app_version__)
OmegaConf.register_new_resolver("__search_package_path__", __search_package_path__)
OmegaConf.register_new_resolver("__home_path__", __home_path__)
OmegaConf.register_new_resolver("today", FUNCs.today)
Expand Down

0 comments on commit 2352c56

Please sign in to comment.