py-execute-buffer ignores full-path py-shell-name

Bug #943832 reported by Andreas Roehler
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-mode.el
Fix Released
Medium
Andreas Roehler

Bug Description

> Hello Andreas
>
> I'm writing You about the python-mode v.6.0.5;
>
> I have
> (setq py-shell-name "/usr/bin/ipython")
> in .emacs, but still C-c C-c sends my buffer to python2.6.

Changed in python-mode:
assignee: nobody → Andreas Roehler (a-roehler)
milestone: none → 6.0.5
importance: Undecided → Medium
status: New → In Progress
Changed in python-mode:
status: In Progress → Fix Committed
Changed in python-mode:
status: Fix Committed → Fix Released
Revision history for this message
Andreas Roehler (a-roehler) wrote :

Am 05.03.2012 14:16, schrieb Boris Kheyfets:
> python-mode, rev 856:
>
> hashbang still overrides user's choice: when I press PyShell ->
> ipython - python2.7.2 starts.
> `py-execute-buffer' still ignores full-path `py-shell-name'
>
> With great respect,
> Boris.

Changed in python-mode:
status: Fix Released → New
Revision history for this message
Andreas Roehler (a-roehler) wrote :

Hi Boris,

as far as you describes, it's not a bug.

See
https://answers.launchpad.net/python-mode/+question/190268

When the file/buffer has a shebang indicating a different Python you want to execute with, use a command explicitly specifying it:

For example M-x py-execute-buffer-ipython will use IPython even if shebang says #! /usr/bin/env python

Precedences: Shebang precedes default py-shell-name, a call of py-execute-buffer-PY-SHELL-NAME precedes shebang

;;;;;;;;;;;

There is a bug which deserves the title, not described here however,

Cheers,

Andreas

Revision history for this message
Andreas Roehler (a-roehler) wrote :

please re-open if it still happens

Changed in python-mode:
status: New → Fix Committed
Changed in python-mode:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.