<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 20: shell gets set to 'cpython'</title><link>https://sourceforge.net/p/python-mode/bugs/20/</link><description>Recent changes to 20: shell gets set to 'cpython'</description><atom:link href="https://sourceforge.net/p/python-mode/bugs/20/feed.rss" rel="self"/><language>en</language><lastBuildDate>Fri, 03 Sep 2004 15:24:01 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/python-mode/bugs/20/feed.rss" rel="self" type="application/rss+xml"/><item><title>shell gets set to 'cpython'</title><link>https://sourceforge.net/p/python-mode/bugs/20/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;If I edit a source file which starts with&lt;/p&gt;
&lt;p&gt;#!/usr/bin/python&lt;/p&gt;
&lt;p&gt;and I hit C-c C-c to run it, then py-execute-region sets&lt;br /&gt;
the variable shell using&lt;/p&gt;
&lt;p&gt;(setq shell (or (py-choose-shell-by-shebang)&lt;br /&gt;
(py-choose-shell-by-import)&lt;br /&gt;
py-which-shell))))&lt;/p&gt;
&lt;p&gt;The function py-choose-shell-by-shebang returns cpython.&lt;br /&gt;
Then a bit further down we have&lt;/p&gt;
&lt;p&gt;(let ((cmd (concat shell ...&lt;/p&gt;
&lt;p&gt;which gives an error:&lt;/p&gt;
&lt;p&gt;Debugger entered--Lisp error: (wrong-type-argument&lt;br /&gt;
sequencep cpython)&lt;br /&gt;
concat(cpython "")&lt;/p&gt;
&lt;p&gt;The only related line in my .emacs.el is&lt;/p&gt;
&lt;p&gt;(require 'python-mode)&lt;/p&gt;
&lt;p&gt;Dan&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dan Christensen</dc:creator><pubDate>Fri, 03 Sep 2004 15:24:01 -0000</pubDate><guid>https://sourceforge.net9bad77606b5870055afa5d114623ccfb4d03f7bc</guid></item></channel></rss>