[Python-mode] py-python-command default

David Miller david at deadpansincerity.com
Wed Sep 28 14:15:16 CEST 2011


>
> Yes, please. :)  ipython is a separate program that doesn't come with stock
> Python.
>
How about conditionally setting it - this is essentially what Django does
with it's shell

(defcustom py-python-command (if (executable-find "ipython") "ipython"
"python")

>py-execute-region-python3
> >py-execute-region-python2.7
> >py-execute-region-ipython
> >
> >etc., which should be faster to use than customization.
>
+1


-- 
Love regards etc

David Miller
http://www.deadpansincerity.com
07854 880 883
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-mode/attachments/20110928/a4532bf2/attachment.html>


More information about the Python-mode mailing list