On 2/24/20, jdve...@gmail.com <jdve...@gmail.com> wrote: > > I try to use along with -m (`python -I -m a.b`) and get this error: "python: > Error while finding module specification for 'a.b' (ModuleNotFoundError: No > module named 'a')".
This is a use case for -m that requires adding the working directory to sys.path. I work in virtual environments, and I don't navigate into a package and execute modules. The target package is always either in the standard library or installed in site-packages, and the module is executed from the top level. So for me adding the working directory is a feature I never need, and I completely forgot about why anyone would want it. _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/RAZRNATFDLGS3MIAIEXXLKQTD447UK3P/ Code of Conduct: http://python.org/psf/codeofconduct/