Skip to content

Commit

Permalink
Merge pull request #10 from henrypinkard/main
Browse files Browse the repository at this point in the history
Fix config path issue
  • Loading branch information
henrypinkard authored Jul 16, 2024
2 parents 8afafc2 + ce5709f commit 305f0bf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,8 @@ core = Core()
terminate_core_instances()
```

## Install issues on M1 Macs

https://github.com/conda-forge/miniforge/issues/165#issuecomment-860233092


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 305f0bf

Please sign in to comment.