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: 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; 'subject:IDLE': 0.03; 'idle,': 0.09; 'invocation': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'argument': 0.15; 'bieber': 0.16; 'declaimed': 0.16; 'email addr:ix.netcom.com': 0.16; 'email name:wlfraed': 0.16; 'from:addr:ix.netcom.com': 0.16; 'from:addr:wlfraed': 0.16; 'from:name:dennis lee bieber': 0.16; 'loaded,': 0.16; 'received:wlfraed': 0.16; 'url:netcom': 0.16; 'url:wlfraed': 0.16; 'wulfraed': 0.16; 'this:': 0.16; 'arguments': 0.18; 'trying': 0.21; 'file,': 0.21; 'url:home': 0.21; "doesn't": 0.22; 'layers': 0.23; 'referring': 0.23; 'command': 0.24; 'specify': 0.24; 'windows': 0.26; 'skip:" 30': 0.28; "i'm": 0.28; 'far.': 0.29; 'idle': 0.29; 'seem': 0.29; 'sun,': 0.30; 'subject:?': 0.31; 'actually': 0.31; 'instead.': 0.32; 'does': 0.32; 'file': 0.34; 'header:X-Complaints-To:1': 0.34; 'lee': 0.34; 'puts': 0.34; 'to:addr:python-list': 0.35; 'skip:" 20': 0.35; 'two': 0.36; 'received:org': 0.36; 'variables': 0.37; 'run': 0.37; 'but': 0.37; 'charset:us-ascii': 0.37; 'skip:" 10': 0.37; 'using': 0.37; 'happens': 0.38; 'some': 0.38; 'problems': 0.38; 'open': 0.38; 'goes': 0.39; 'to:addr:python.org': 0.40; 'john': 0.61; 'your': 0.61; 'full': 0.62; 'dennis': 0.73; 'subject:this': 0.74; 'acts': 0.77; '-0800': 0.84; 'associations': 0.84; 'correctly?': 0.84; 'subject:launch': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: Is this the right location to launch IDLE? Date: Sun, 04 Mar 2012 22:33:10 -0500 Organization: > Bestiaria Support Staff < References: <1902734.303.1330902461168.JavaMail.geo-discussion-forums@yncd8> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-99-85-12-49.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 3.3/32.846 X-No-Archive: YES 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: 24 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1330918401 news.xs4all.nl 6856 [2001:888:2000:d::a6]:33615 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:21216 On Sun, 4 Mar 2012 15:07:41 -0800 (PST), John Salerno declaimed the following in gmane.comp.python.general: > I'm trying to get Notepad++ to launch IDLE and run the currently open file in IDLE, but all my attempts have failed so far. I'm wondering, am I even using the IDLE path correctly? I'm using this: > > "C:\Python32\Lib\idlelib\idle.pyw" "$(FULL_CURRENT_PATH)" > > (That last part puts in the full path to the open file.) > > Is this not the proper way to launch IDLE with an argument? It actually does open up IDLE, but the file doesn't seem to have been loaded, because when I try to use variables or functions from the file, IDLE acts as if it doesn't know what I'm referring to. > What happens if you specify "C:\Python32\pythonw.exe" "C:\....\idle.pyw" "$...." I seem to recall that Windows has problems passing command line arguments when it goes through two layers of invocation (ie: your file is an argument to idle.pyw, the file associations make idle.pyw an argument to some other program instead. -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/