lib.ExecContext.CallContext.log_delim: Beautify #12

Merged
Jan Lindemann merged 1 commit from jan/feature/20260611-lib-execcontext-callcontext-log-delim-beautify into master 2026-06-11 14:19:00 +02:00 AGit

View file

@ -119,12 +119,9 @@ class ExecContext(Base):
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.__title = 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