From 5ffdca60ea8f6db8f1d2aa61b415582bcd30a179 Mon Sep 17 00:00:00 2001 From: Henry Pinkard <7969470+henrypinkard@users.noreply.github.com> Date: Tue, 16 Jul 2024 16:24:38 +0200 Subject: [PATCH] fix config path --- src/mmpycorex/_version.py | 2 +- src/mmpycorex/launcher.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/mmpycorex/_version.py b/src/mmpycorex/_version.py index 8581854..5dd44d8 100644 --- a/src/mmpycorex/_version.py +++ b/src/mmpycorex/_version.py @@ -1,2 +1,2 @@ -version_info = (0, 3, 6) +version_info = (0, 3, 8) __version__ = ".".join(map(str, version_info)) diff --git a/src/mmpycorex/launcher.py b/src/mmpycorex/launcher.py index c04536a..e894ad8 100644 --- a/src/mmpycorex/launcher.py +++ b/src/mmpycorex/launcher.py @@ -162,6 +162,10 @@ def create_core_instance( if mm_app_path == 'auto': mm_app_path = get_default_install_location() + # if config file is not an absolute path, assume it is relative to the mm_app_path + if not os.path.isabs(config_file): + config_file = os.path.join(mm_app_path, config_file) + if python_backend: mmc = _create_pymmcore_instance() mmc.set_device_adapter_search_paths([mm_app_path])