Skip to content

Commit

Permalink
No config file with Python backend
Browse files Browse the repository at this point in the history
  • Loading branch information
jacopoabramo committed Oct 11, 2023
1 parent 2eec1b8 commit 5714982
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pycromanager/headless.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ def start_headless(
if python_backend:
mmc = _create_pymmcore_instance()
mmc.set_device_adapter_search_paths([mm_app_path])
mmc.load_system_configuration(config_file)
if config_file is not None and config_file != "":
mmc.load_system_configuration(config_file)
mmc.set_circular_buffer_memory_footprint(buffer_size_mb)
_PYMMCORES.append(mmc) # Store so it doesn't get garbage collected
Engine(mmc)
Expand Down

0 comments on commit 5714982

Please sign in to comment.