Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!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.012 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'scripts': 0.09; 'python': 0.09; 'portable': 0.09; 'shortcut': 0.09; 'subject:script': 0.09; 'subject:python': 0.11; "(i'm": 0.16; 'received:192.168.1.50': 0.16; 'wrote:': 0.17; 'script.': 0.17; 'windows': 0.19; 'suggested': 0.20; 'file.': 0.20; 'minor': 0.22; 'command': 0.24; 'host': 0.24; 'script': 0.24; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'am,': 0.27; 'dos': 0.27; 'i.e.': 0.27; 'relative': 0.30; 'window': 0.30; 'seconds': 0.30; 'launch': 0.32; 'could': 0.32; 'to:addr:python-list': 0.33; 'should': 0.36; 'subject:: ': 0.38; 'instead': 0.39; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'received:192.168': 0.40; 'received:62': 0.62; 'expert': 0.62; 'thomas': 0.62; 'from:addr:t': 0.84; 'gelonida': 0.84; 'received:62.75': 0.84 Date: Sun, 12 Aug 2012 21:05:24 +0200 From: Thomas Jollans User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: suggesting a launcher wrapper script for portable python References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1344798699 news.xs4all.nl 6880 [2001:888:2000:d::a6]:43984 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:26950 On 08/12/2012 02:49 AM, Gelonida N wrote: > > One minor drawback of my suggested script would be, that a console > window pops up for a few seconds when starting a .pyw file. (I'm no expert but) This should be avoidable if you use the Windows Script Host instead of DOS command scripts to write the launchers. I.e. use JScript or VBScript to do exactly the same thing. I don't know much about Windows shortcut (*.lnk) files; if they can contain relative paths, you could just create shortcuts that launch portable python with the script. Thomas