Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Michael Torrie Newsgroups: comp.lang.python Subject: Re: how do I put the python on my desktop or even access it Date: Sun, 17 Jan 2016 17:05:49 -0700 Lines: 24 Message-ID: References: <569BAD24.4030700@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de C3nZEeRxXilJCKzzfN7eFAQI7qkzuSD85PTACtrzrB5A== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'newbie': 0.05; 'skip:\\ 20': 0.05; 'python': 0.10; 'jan': 0.11; 'subject:python': 0.14; '2016': 0.16; 'from:addr:torriem': 0.16; 'from:name:michael torrie': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'run.': 0.16; 'subject:access': 0.16; 'subject:desktop': 0.16; 'useless': 0.16; 'wrote:': 0.16; 'input': 0.18; 'am,': 0.23; 'this:': 0.23; 'thus': 0.24; 'header:In-Reply-To:1': 0.24; 'header :User-Agent:1': 0.26; "doesn't": 0.26; 'btw,': 0.29; 'code': 0.30; 'window': 0.30; 'another': 0.32; 'posting': 0.32; 'run': 0.33; 'michael': 0.33; 'doubt': 0.33; 'open': 0.33; 'message- id:@gmail.com': 0.34; 'file': 0.34; 'instance': 0.35; 'something': 0.35; 'but': 0.36; 'hosted': 0.36; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'doing': 0.38; 'itself': 0.38; 'why': 0.39; 'subject:the': 0.39; 'received:192': 0.39; 'rather': 0.39; 'to:addr:python.org': 0.40; 'charset:windows-1252': 0.62; 'more': 0.63; 'respect': 0.65; 'useful.': 0.72; 'special': 0.73 X-Virus-Scanned: amavisd-new at torriefamily.org User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 In-Reply-To: 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: , Xref: csiph.com comp.lang.python:101866 On 01/17/2016 02:46 PM, eryk sun wrote: > On Sun, Jan 17, 2016 at 9:03 AM, Michael Torrie wrote: >> >> but if it's a text-mode program you must run it from cmd.exe like this: >> >> python \path\to\myprogram.py. > > You only need to run from another console program to keep the window > open after Python exits. You can even do that in other ways, but doing > that is more complicated than it is useful. Yes, but then we'll get the OP posting to ask why his python program doesn't run. When he double-clicks his Py file it pops up briefly then disappears! (Unless the code waits for user input of course). > BTW, each console window is hosted by an instance of conhost.exe. > There's nothing special about cmd.exe with respect to the console. Of course, but I doubt very many people know about conhost.exe. And conhost.exe is rather useless in and of itself unless you have something to run on it. Thus the usual way to get a console window that you can actually work with is to run cmd.exe. I seriously doubt you would tell a newbie to somehow use conhost.exe to run his program.