Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #33712
| Path | csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <mail@timgolden.me.uk> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.000 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'interpreter': 0.04; '(even': 0.05; 'default.': 0.07; 'interpreter.': 0.07; 'merging': 0.07; 'subject:question': 0.08; 'api': 0.09; 'python': 0.09; 'backwards': 0.09; 'subject:version': 0.09; 'cc:addr:python-list': 0.10; 'subject:python': 0.11; '2.7': 0.13; 'fishing': 0.16; 'from:addr:timgolden.me.uk': 0.16; 'from:name:tim golden': 0.16; 'initially,': 0.16; 'keys:': 0.16; 'message-id:@timgolden.me.uk': 0.16; 'presume': 0.16; 'received:74.55.86': 0.16; 'received:74.55.86.74': 0.16; 'received:smtp.webfaction.com': 0.16; 'received:webfaction.com': 0.16; 'registry': 0.16; 'subject: \n ': 0.16; 'subject:default': 0.16; 'subject:windows': 0.16; 'surprising': 0.16; 'tjg': 0.16; 'settings': 0.16; 'wrote:': 0.17; 'typing': 0.17; 'shell': 0.18; 'windows': 0.19; 'bit': 0.21; 'explicit': 0.22; 'keys': 0.22; 'latter': 0.22; 'machine.': 0.22; 'cc:2**0': 0.23; "haven't": 0.23; 'installed': 0.23; 'cc:no real name:2**0': 0.24; 'command': 0.24; 'script': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; '2.6': 0.27; 'restart': 0.29; 'at:': 0.31; 'file': 0.32; 'received:192.168.100': 0.33; 'hi,': 0.33; 'especially': 0.35; 'there': 0.35; 'really': 0.36; 'but': 0.36; 'two': 0.37; 'uses': 0.37; 'being': 0.37; 'moment': 0.37; 'subject:: ': 0.38; 'received:192': 0.39; 'skip:" 10': 0.40; 'received:192.168': 0.40; 'back': 0.62; 'between': 0.63; 'bothered': 0.65; 'explorer': 0.65; 'from:addr:mail': 0.71; 'click': 0.76; '2.7.': 0.84; 'gelonida': 0.84; 'presumably': 0.84; 'to:none': 0.93 |
| Date | Wed, 21 Nov 2012 09:34:40 +0000 |
| From | Tim Golden <mail@timgolden.me.uk> |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 |
| MIME-Version | 1.0 |
| CC | python-list@python.org |
| Subject | Re: windows question: default click action points to wrong python version |
| References | <k8i313$kv1$1@ger.gmane.org> |
| In-Reply-To | <k8i313$kv1$1@ger.gmane.org> |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | 7bit |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.134.1353490483.29569.python-list@python.org> (permalink) |
| Lines | 45 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1353490483 news.xs4all.nl 6844 [2001:888:2000:d::a6]:57340 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:33712 |
Show key headers only | View raw
On 21/11/2012 08:23, Gelonida N wrote: > Hi, > > I installed python 2.6 and python 2.7 on a windows 7 machine. > > At the moment Python 2.7 is the interpreter being used if I 'start' a > python script without explicit interpreter. > > I always thought, that 'repairing' Python 2.6 (reinstalling it) would > set the default settings back to Python 2.6. > > I also see with assoc / ftypes, that python 2.6. has now been configured > as default. > > However when I click on a script it is still started with 2.7. > (even after a full restart of the machine) > > This is really surprising to me. > I thought ftype is the command to change file associations. This area is a bit messy. There is a difference between: going to the command line and typing "myscript.py"; and double-clicking on a file in Explorer. The former uses the result of merging the assoc/ftype registry keys: HKEY_CURRENT_USER\Software\Classes\Python.File\shell\open\command HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.File\shell\open\command while the latter uses the Explorer registry keys at: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.py\UserChoice Initially, I suppose, the two are in sync. But presumably they can get out of sync, especially if you move backwards and forwards between associations. I haven't bothered fishing around in the Shell API but I presume that you can reconcile the two -- or just edit the registry, obviously. TJG
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: windows question: default click action points to wrong python version Tim Golden <mail@timgolden.me.uk> - 2012-11-21 09:34 +0000
csiph-web