evhub / coconut

Simple, elegant, Pythonic functional programming.
http://coconut-lang.org
Apache License 2.0
4.04k stars 120 forks source link

Add `coconut -m` support #801

Open evhub opened 9 months ago

evhub commented 9 months ago

Should look up the module for import, compile it, then run python -m to execute it. Should be incompatible with -r or -i. Should also work for coconut-run and should immediately go to --argv after -m module when using coconut-run -m.

evhub commented 9 months ago

We might not actually need this, because with coconut --site-install you should be able to just do this with python -m.