From a8b61ca588d7aafdce5fea97a990a7ef40a0bf1a Mon Sep 17 00:00:00 2001 From: Roi Agai Date: Wed, 4 Sep 2024 11:44:49 +0300 Subject: [PATCH] CR: make sure tmpdir exists --- gprofiler/utils/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gprofiler/utils/__init__.py b/gprofiler/utils/__init__.py index a80453592..cd2329f44 100644 --- a/gprofiler/utils/__init__.py +++ b/gprofiler/utils/__init__.py @@ -154,6 +154,7 @@ def start_process( env = env if env is not None else os.environ.copy() env.update({"LD_LIBRARY_PATH": ""}) if tmpdir is not None: + tmpdir.mkdir(exist_ok=True) env.update({"TMPDIR": tmpdir}) if is_windows():