My python entrypoint needs to be run as a module (not a script), as in:
python -m foo.bar
man python, the
Searches sys.path for the named module and runs the corresponding .py file as a script.
So most of the time you can just right-click on
bar.py in the Project tool window and select
If you really need to use the
-m option, then specify it as an Interpreter option, with the module name as the Script in the Edit Configurations dialog: