From 8e004042b1260d1f6bbd887becbacd02048b0a4c Mon Sep 17 00:00:00 2001 From: tomeichlersmith Date: Tue, 28 Mar 2023 09:57:29 -0500 Subject: [PATCH] move hadd import to bottom so that it can access the global_logger --- python/hpsmc/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/hpsmc/__init__.py b/python/hpsmc/__init__.py index 5311be6d7..6a3ded56c 100644 --- a/python/hpsmc/__init__.py +++ b/python/hpsmc/__init__.py @@ -1,6 +1,5 @@ import shutil -from ._hadd import hadd from ._config import _read_global_config from ._logging import _setup_logging @@ -20,3 +19,6 @@ _global_logger.info("Config files found: {}".format(_config_files)) else: _global_logger.warn("No config files were found at default locations! (`~/.hpsmc` or `.hpsmc` in your current directory)") + +# import hadd down here so global_config is defined +from ._hadd import hadd