<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 4: autodetection of python shell</title><link href="https://sourceforge.net/p/python-mode/feature-requests/4/" rel="alternate"/><link href="https://sourceforge.net/p/python-mode/feature-requests/4/feed.atom" rel="self"/><id>https://sourceforge.net/p/python-mode/feature-requests/4/</id><updated>2005-06-10T12:30:28Z</updated><subtitle>Recent changes to 4: autodetection of python shell</subtitle><entry><title>autodetection of python shell</title><link href="https://sourceforge.net/p/python-mode/feature-requests/4/" rel="alternate"/><published>2005-06-10T12:30:28Z</published><updated>2005-06-10T12:30:28Z</updated><author><name>Jonas Kölker</name><uri>https://sourceforge.net/u/jonaskoelker/</uri></author><id>https://sourceforge.netfa6016d5eac692b7f9cd784b45463ee60919a0df</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;(See also 783259, regarding more flexible python shell&lt;br /&gt;
selection.)&lt;/p&gt;
&lt;p&gt;I propose that at appropriate times (*), the default&lt;br /&gt;
python shell is (re-)determined according to the&lt;br /&gt;
sha-bang line.&lt;/p&gt;
&lt;p&gt;(*) Suggestions: on file load, on first shell&lt;br /&gt;
invocation, on each interactive invocation.&lt;/p&gt;
&lt;p&gt;Example of the behaviour I would like:&lt;br /&gt;
On loading a file beginning with `#!/usr/bin/env&lt;br /&gt;
python2.4', the (default) python shell is set to&lt;br /&gt;
`python2.4' (no path information)&lt;/p&gt;
&lt;p&gt;On loading a file beginning with&lt;br /&gt;
"#!/path/to/my/custom/app", my custom app (with full&lt;br /&gt;
path info) is the default shell.&lt;/p&gt;
&lt;p&gt;On invoking the shell the first time in a freshly&lt;br /&gt;
created file, the sha-bang line is examined and&lt;br /&gt;
suggested as a default shell.&lt;/p&gt;
&lt;p&gt;(for all cases: if not has sha-bang line: use current&lt;br /&gt;
default)&lt;/p&gt;
&lt;p&gt;---&lt;/p&gt;
&lt;p&gt;I know I'm being a bit vague (sorry); my agenda is&lt;br /&gt;
provoking a discussion of the idea (so I'll know what&lt;br /&gt;
to implement, diff and submit), not getting a&lt;br /&gt;
yes-or-no-p answer.&lt;/p&gt;
&lt;p&gt;--Jonas&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>