pymmcore-plus / napari-micromanager

GUI interface between napari and micromanager powered by pymmcore-plus and pymmcore-widgets
https://pymmcore-plus.github.io/napari-micromanager/
BSD 3-Clause "New" or "Revised" License
61 stars 21 forks source link

fix: fix when passing a config file in the command line #318

Closed fdrgsp closed 6 months ago

fdrgsp commented 6 months ago

currently if we try to run

napari-micromanager -c "test_config.cfg" (or python -m napari_micromanager)

we get an unrecognized arguments error.

I think it's because the main() function in __main__.py is considering .../napari-micromanager/src/napari_micromanager (or .../napari-micromanager/src/napari_micromanager__main__.py as the first argument.

This PR fixes that issue.

codecov[bot] commented 6 months ago

Codecov Report

Attention: Patch coverage is 0% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 79.19%. Comparing base (fd788a4) to head (dedeb52).

Files Patch % Lines
src/napari_micromanager/__main__.py 0.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #318 +/- ## ======================================= Coverage 79.19% 79.19% ======================================= Files 15 15 Lines 692 692 ======================================= Hits 548 548 Misses 144 144 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.