[Python-mode] py-python-command default
Andreas Röhler
andreas.roehler at online.de
Wed Sep 28 17:29:53 CEST 2011
Am 28.09.2011 14:15, schrieb David Miller:
>>
>> 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")
reads good for me.
Let's see what others think.
BTW being back to default "python" rather per chance,
as redundancy between py-shell-name and py-python-command has been
solved - and remaining py-shell-name was set that way.
We can change that any time.
Cheers,
Andreas
>
>> py-execute-region-python3
>>> py-execute-region-python2.7
>>> py-execute-region-ipython
>>>
>>> etc., which should be faster to use than customization.
>>
> +1
>
>
More information about the Python-mode
mailing list