From 753e6e80d49ddfe285f6225c8f3347877bafe526 Mon Sep 17 00:00:00 2001 From: Oliver Schwengers Date: Tue, 23 Nov 2021 14:11:09 +0100 Subject: [PATCH] fix creation of user defined tmp directory --- bakta/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bakta/config.py b/bakta/config.py index 29a4ce7d..ee41c0f4 100644 --- a/bakta/config.py +++ b/bakta/config.py @@ -119,9 +119,9 @@ def setup(args): sys.exit(f'ERROR: dedicated temporary directory ({tmp_path}) does not exist!') else: log.info('use dedicated temp dir: path=%s', tmp_path) - tmp_path = Path(tempfile.mkdtemp(dir=str(tmp_path))) + tmp_path = Path(tempfile.mkdtemp(dir=str(tmp_path))).resolve() else: - tmp_path = Path(tempfile.mkdtemp()) + tmp_path = Path(tempfile.mkdtemp()).resolve() log.info('tmp-path=%s', tmp_path) try: