Skip to content

Commit ab2603b

Browse files
committed
avoid trying import anything if we run fmdl_initialize_databank
1 parent f540029 commit ab2603b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/fairmd/lipids/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ def raise_if_subpath_of_dblspec(p: str) -> None:
9999
f"FAIRMD Lipids is initialized from the folder: {FMDL_DATA_PATH}\n"
100100
"---------------------------------------------------------------",
101101
)
102+
# reexport progress to use globally instead of tqdm
103+
from fairmd.lipids._base import progress # noqa: E402
102104
elif "fmdl_initialize_data" in sys.argv[0]:
103105
# fmdl_initialize_data is used to create databank directories
104106
# so we should not complain that directories don't exist
@@ -113,8 +115,6 @@ def raise_if_subpath_of_dblspec(p: str) -> None:
113115
and then specify by FMDL_DATA_PATH environment variable."""
114116
raise RuntimeError(msg)
115117

116-
# reexport progress to use globally instead of tqdm
117-
from fairmd.lipids._base import progress # noqa: E402
118118

119119
__all__ = [
120120
"FMDL_DATA_PATH",

0 commit comments

Comments
 (0)