Skip to content

Commit

Permalink
Explicitly import pex.config.history
Browse files Browse the repository at this point in the history
It is not exported by default by pex_config and the tests
have been relying on it being imported by the gen2
code in pipe_base (argumentParser.py).
  • Loading branch information
timj committed Mar 23, 2022
1 parent 9a62a57 commit 2c66fc2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/lsst/ctrl/mpexec/cmdLineFwk.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
from typing import Iterable, Optional, Tuple

import lsst.pex.config as pexConfig
import lsst.pex.config.history as pexConfigHistory

# -----------------------------
# Imports for other modules --
Expand Down Expand Up @@ -882,7 +883,7 @@ def _showConfigHistory(self, pipeline, showArgs):
hconfig, cname
):
print(f"### Configuration field for task `{taskDef.label}'")
print(pexConfig.history.format(hconfig, cname))
print(pexConfigHistory.format(hconfig, cname))
found = True

if not found:
Expand Down

0 comments on commit 2c66fc2

Please sign in to comment.