Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.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.036 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'subject:IDLE': 0.03; 'option,': 0.07; 'correct.': 0.09; 'idle,': 0.09; 'loaded,': 0.16; 'cc:addr:python-list': 0.16; 'this:': 0.16; 'wrote:': 0.18; 'cheers,': 0.20; 'cc:no real name:2**0': 0.21; 'trying': 0.21; 'file,': 0.21; "doesn't": 0.22; 'header:In-Reply-To:1': 0.22; 'referring': 0.23; 'received:209.85.220': 0.25; 'cc:2**0': 0.26; 'skip:" 30': 0.28; "i'm": 0.28; 'message-id:@mail.gmail.com': 0.29; 'far.': 0.29; 'idle': 0.29; 'cc:addr:python.org': 0.29; 'seem': 0.29; 'pm,': 0.29; 'sun,': 0.30; 'chris': 0.30; 'subject:?': 0.31; 'actually': 0.31; 'does': 0.32; 'file': 0.34; 'puts': 0.34; 'skip:" 20': 0.35; 'variables': 0.37; 'run': 0.37; 'but': 0.37; 'received:google.com': 0.37; 'using': 0.37; 'received:209.85': 0.38; 'open': 0.38; 'received:209': 0.39; 'john': 0.61; 'header:Received:6': 0.61; 'your': 0.61; 'full': 0.62; 'subject:this': 0.74; 'acts': 0.77; 'correctly?': 0.84; 'sender:addr:chris': 0.84; 'subject:launch': 0.84; 'url:rebertia': 0.84 Received-SPF: pass (google.com: domain of chris@rebertia.com designates 10.52.240.200 as permitted sender) client-ip=10.52.240.200; Authentication-Results: mr.google.com; spf=pass (google.com: domain of chris@rebertia.com designates 10.52.240.200 as permitted sender) smtp.mail=chris@rebertia.com; dkim=pass header.i=chris@rebertia.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rebertia.com; s=google; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=9ITwLjsuNtWlR5cE5FrLQOIIRsMGpdKk8/4SyCve9Xo=; b=MqN4v6S0QYiO1ysb7xexC05H9I5jTGxwTlCBi1DxCZxhuzcSMA/MSfGXotZQ6lkVgf ZhE81uoedZHhQmo8rVUAuvPFSsQKS1goDs3c2haGHZzmLuVZ5dMZ2Uux8rcO7ycWOQ89 /moUzTUXotqa9vmMt/Sjh+X3B+K/poKWA2l7I= MIME-Version: 1.0 Sender: chris@rebertia.com In-Reply-To: <1902734.303.1330902461168.JavaMail.geo-discussion-forums@yncd8> References: <1902734.303.1330902461168.JavaMail.geo-discussion-forums@yncd8> Date: Sun, 4 Mar 2012 18:53:57 -0800 X-Google-Sender-Auth: MUwo6pdsYSFnUvg1Ux0-RiFLI8E Subject: Re: Is this the right location to launch IDLE? From: Chris Rebert To: John Salerno Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQnZerOtd0n6FEgzHcBZxrWxQRaUiVP2LL1BhWyYY/BGkfcQ729s52o0daMn1s7e1nc8ePk+ Cc: python-list@python.org 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: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1330916040 news.xs4all.nl 6984 [2001:888:2000:d::a6]:58632 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:21215 On Sun, Mar 4, 2012 at 3:07 PM, John Salerno wrote: > 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? Correct. According to IDLE's USAGE message, you want the "-r" option, which would make your desired command: "C:\Python32\Lib\idlelib\idle.pyw" -r "$(FULL_CURRENT_PATH)" > 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. Cheers, Chris -- http://rebertia.com