[Python-ideas] Making -m work for scripts

Ned Batchelder ned at nedbatchelder.com
Fri Jun 12 13:03:56 CEST 2015

On 6/11/15 1:23 PM, Ram Rachum wrote:
> Hi,
> What do you think about making `python -m whatever` work also for 
> installed scripts and not just for modules? I need this now because 
> I've installed pypy on Linux, and I'm not sure how to run the 
> `nosetests` of PyPy (in contrast to the `nosetests` of the system 
> Python.) It's sometimes a mess to find where Linux installed the 
> scripts related with each version of Python. But if I could do `pypy 
> -m nosetests` then I'd have a magic solution. What do you think?

This works today:

     $ python -m nose


More information about the Python-ideas mailing list