[Python-ideas] Making -m work for scripts

Antoine Pitrou solipsis at pitrou.net
Thu Jun 11 19:37:30 CEST 2015


On Thu, 11 Jun 2015 20:23:57 +0300
Ram Rachum <ram at rachum.com> 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?

How would Python know where to find the script?
Note: if "python -m nose" doesn't already work, it is probably a nice
feature request for nose.

Regards

Antoine.




More information about the Python-ideas mailing list