joaonc / show_dialog

Easily show a dialog for miscellaneous uses.
https://joaonc.github.io/show_dialog
MIT License
0 stars 0 forks source link

Warning when running as module #58

Open joaonc opened 1 month ago

joaonc commented 1 month ago

When running as a module, ex:

python -m src.show_dialog.main --help

This warning appears:

<frozen runpy>:128: RuntimeWarning: 'src.show_dialog.main' found in sys.modules
after import of package 'src.show_dialog', but prior to execution of 'src.show_dialog.main';
this may result in unpredictable behaviour

The program proceeds to work as expected, but this warning is indicative that something's wrong. Most likely due to circular imports or something related to imports in src/show_dialog/__init__.py.