Skip to content

Commit

Permalink
move hadd import to bottom so that it can access the global_logger
Browse files Browse the repository at this point in the history
  • Loading branch information
tomeichlersmith committed Mar 28, 2023
1 parent 441e5ec commit 8e00404
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/hpsmc/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import shutil

from ._hadd import hadd
from ._config import _read_global_config
from ._logging import _setup_logging

Expand All @@ -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

0 comments on commit 8e00404

Please sign in to comment.