Skip to content

Commit

Permalink
fix(config): modify print_about to adjust package name for hyfi
Browse files Browse the repository at this point in the history
  • Loading branch information
entelecheia committed Aug 12, 2023
1 parent d7dc135 commit bf53fd8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/hyfi/main/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,12 @@ def package_name(self):

def print_about(self, **kwargs):
if not kwargs:
kwargs = {"_config_name_": global_hyfi.package_name}
config_name = (
"__init__"
if global_hyfi.package_name == "hyfi"
else global_hyfi.package_name
)
kwargs = {"_config_name_": config_name}
self._about_ = AboutConfig(**kwargs)
pkg_name = self.package_name
name = self.app_name
Expand Down

0 comments on commit bf53fd8

Please sign in to comment.