Merge remote-tracking branch 'upstream/dev' into dev

This commit is contained in:
2Shirt 2023-07-09 00:17:26 -07:00
commit 593cb405c5
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -1898,7 +1898,18 @@ def source_or_destination_changed(state) -> bool:
def main() -> None:
"""Main function for ddrescue TUI."""
args = docopt(DOCSTRING)
log.update_log_path(dest_name='ddrescue-TUI', timestamp=True)
log_dir = log.format_log_path()
log_dir = pathlib.Path(
f'{log_dir.parent}/'
f'ddrescue-TUI_{time.strftime("%Y-%m-%d_%H%M%S%z")}/'
)
log.update_log_path(
dest_dir=log_dir,
dest_name='main',
keep_history=False,
timestamp=False,
)
LOG.info('ddrescue-tui Start')
# Check if running inside tmux
if 'TMUX' not in os.environ: