From 1d11e7044e5bfe9a5cf817e69de892fdf095df58 Mon Sep 17 00:00:00 2001 From: Joe Knapper Date: Mon, 23 Mar 2026 16:59:57 +0000 Subject: [PATCH] Move from posix path to os path --- src/openflexure_microscope_server/things/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openflexure_microscope_server/things/__init__.py b/src/openflexure_microscope_server/things/__init__.py index 65314462..caf89320 100644 --- a/src/openflexure_microscope_server/things/__init__.py +++ b/src/openflexure_microscope_server/things/__init__.py @@ -4,7 +4,7 @@ The microscope can be extended to be used with other hardware by creating a pack with other Things and including them in the LabThings-FastAPI config file. """ -import posixpath +import os from typing import Optional, Self import labthings_fastapi as lt @@ -23,7 +23,7 @@ class OFMThing(lt.Thing): if application_config is None: raise ValueError("No application configuration was supplied.") app_data_dir = application_config["data_folder"] - self._data_dir = posixpath.join(str(app_data_dir), self.path.strip("/")) + self._data_dir = os.path.join(str(app_data_dir), self.path.strip("/")) return self @property