From e743c79b3e1370fcbbee5c7bb9f93e7ba6e6edbe Mon Sep 17 00:00:00 2001 From: Callum Forrester Date: Mon, 3 Feb 2025 14:13:07 +0000 Subject: [PATCH] Remove tmpdir --- src/blueapi/startup/example_devices.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/blueapi/startup/example_devices.py b/src/blueapi/startup/example_devices.py index 65907c4b0..97c2df026 100644 --- a/src/blueapi/startup/example_devices.py +++ b/src/blueapi/startup/example_devices.py @@ -1,5 +1,4 @@ from pathlib import Path -from tempfile import TemporaryDirectory from dodal.common.beamlines.beamline_utils import set_path_provider from dodal.common.visit import LocalDirectoryServiceClient, StaticVisitPathProvider @@ -9,7 +8,9 @@ # Some of our plans such as "count" and "spec_scan" require this global # singleton to be set -_tmp_dir = Path(TemporaryDirectory().name) + +# Workaround for https://github.com/DiamondLightSource/blueapi/issues/784 +_tmp_dir = Path("/does/not/exist") set_path_provider( StaticVisitPathProvider( "t01",