Skip to content

Commit

Permalink
fix config path
Browse files Browse the repository at this point in the history
  • Loading branch information
henrypinkard committed Jul 16, 2024
1 parent 8afafc2 commit 5ffdca6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/mmpycorex/_version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version_info = (0, 3, 6)
version_info = (0, 3, 8)
__version__ = ".".join(map(str, version_info))
4 changes: 4 additions & 0 deletions src/mmpycorex/launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 5ffdca6

Please sign in to comment.