From 6bd6adb9771514cdeb17786762854db77a03463b Mon Sep 17 00:00:00 2001 From: Joscha Date: Thu, 13 May 2021 19:36:46 +0200 Subject: [PATCH] Fix tmp file names --- PFERD/output_dir.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PFERD/output_dir.py b/PFERD/output_dir.py index c875574..08c01a3 100644 --- a/PFERD/output_dir.py +++ b/PFERD/output_dir.py @@ -228,7 +228,7 @@ class OutputDirectory: def _tmp_path(self, base: Path, suffix_length: int) -> Path: prefix = "" if base.name.startswith(".") else "." - suffix = random.choices(SUFFIX_CHARS, k=suffix_length) + suffix = "".join(random.choices(SUFFIX_CHARS, k=suffix_length)) name = f"{prefix}{base.name}.tmp.{suffix}" return base.parent / name