<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 20: shell gets set to 'cpython'</title><link href="https://sourceforge.net/p/python-mode/bugs/20/" rel="alternate"/><link href="https://sourceforge.net/p/python-mode/bugs/20/feed.atom" rel="self"/><id>https://sourceforge.net/p/python-mode/bugs/20/</id><updated>2004-09-03T15:24:01Z</updated><subtitle>Recent changes to 20: shell gets set to 'cpython'</subtitle><entry><title>shell gets set to 'cpython'</title><link href="https://sourceforge.net/p/python-mode/bugs/20/" rel="alternate"/><published>2004-09-03T15:24:01Z</published><updated>2004-09-03T15:24:01Z</updated><author><name>Dan Christensen</name><uri>https://sourceforge.net/u/jdc/</uri></author><id>https://sourceforge.net9bad77606b5870055afa5d114623ccfb4d03f7bc</id><summary type="html">&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;</summary></entry></feed>