diff --git a/src/python/jw/pkg/lib/ExecContext.py b/src/python/jw/pkg/lib/ExecContext.py index 049407c5..e6fce1be 100644 --- a/src/python/jw/pkg/lib/ExecContext.py +++ b/src/python/jw/pkg/lib/ExecContext.py @@ -115,16 +115,15 @@ class ExecContext(Base): throw: bool, verbose: bool | None, ) -> None: + if title is None: + title = f'{parent.uri}: Running {self.pretty_cmd} -' self.__cmd = cmd self.__wd = wd self.__log_prefix = log_prefix self.__parent = parent self.__title = title self.__pretty_cmd: str | None = None - self.__delim = ( - title if title is not None else - f'---- {parent.uri}: Running {self.pretty_cmd} -' - ) + self.__delim = f'---- {title} -' delim_len = 120 self.__delim += '-' * max(0, delim_len - len(self.__delim)) self.__mod_env = {'LC_ALL': 'C'} if mod_env is None else mod_env