Path: csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.05; 'subject:code': 0.07; 'subject:file': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.10; 'file,': 0.15; '"file': 0.16; '.py': 0.16; "computer's": 0.16; 'executable.': 0.16; 'idle,': 0.16; 'idle.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'simpson': 0.16; 'wrote:': 0.16; 'language': 0.19; 'windows': 0.20; 'issue.': 0.20; 'posted': 0.21; 'lawrence': 0.22; 'setup.': 0.22; 'file.': 0.22; 'downloaded': 0.24; 'header:In-Reply-To:1': 0.24; 'header:User-Agent:1': 0.26; "doesn't": 0.26; 'header:X -Complaints-To:1': 0.26; 'question': 0.27; 'fine': 0.28; 'windows,': 0.29; "i'm": 0.30; 'code': 0.30; 'language.': 0.32; 'skip:. 10': 0.32; 'run': 0.33; 'problem': 0.33; 'adjust': 0.33; 'idle': 0.33; 'worked': 0.34; 'running': 0.34; 'skip:c 30': 0.35; 'saved': 0.35; 'skip:p 30': 0.35; 'but': 0.36; 'possible': 0.36; 'subject:work': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'things': 0.38; 'someone': 0.38; 'files': 0.38; 'subject:the': 0.39; "didn't": 0.39; 'to:addr:python.org': 0.40; 'mark': 0.40; 'save': 0.60; 'your': 0.60; 'john': 0.61; 'charset:windows-1252': 0.62; 'our': 0.64; 'believe': 0.66; 'cameron': 0.66; 'answer.': 0.72; 'sounds': 0.76; 'click': 0.76; 'pythonistas,': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: My code won't work if I double click the saved file Date: Thu, 30 Jul 2015 09:49:05 +0100 References: <04881038-a14e-4469-be33-7fcd77496f67@googlegroups.com> <20150730020633.GA13546@cskk.homeip.net> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-78-147-187-35.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 In-Reply-To: <20150730020633.GA13546@cskk.homeip.net> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 40 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1438246165 news.xs4all.nl 2920 [2001:888:2000:d::a6]:39369 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:94767 On 30/07/2015 03:06, Cameron Simpson wrote: > On 29Jul2015 00:20, john wrote: >> I have windows 8 running on my computer and I think I downloaded >> python 2 and 3 simultaneously or I think my computer has built in >> python 2 and I downloaded python 3. And now when I ran my code in >> IDLE, the code works fine but when I save my program and double click >> the save file, it will run but it doesn't worked like it used to work >> in IDLE. >> >> Can someone explain the possible problem I'm currently facing? >> >> I just want my program to run perfectly in both IDLE and when I double >> click the saved file. >> >> I posted my question in stackoverflow but I didn't find an answer. >> >> http://stackoverflow.com/questions/31692156/i-think-my-computer-has-built-in-python-2-and-i-installed-python-3 >> > > This sounds like what is known as a "file association" issue. Your > computer's desktop is perhaps associating .py files with the python2 > executable. I do not use Windows, but I believe you can adjust these > associations. > With the advent of the Python Launcher for Windows things have changed. Here's my setup. C:\Users\Mark\Documents\MyPython>assoc .py .py=Python.File C:\Users\Mark\Documents\MyPython>ftype Python.File Python.File="C:\Windows\py.exe" "%L" %* -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence