Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #21215
| References | <1902734.303.1330902461168.JavaMail.geo-discussion-forums@yncd8> |
|---|---|
| Date | 2012-03-04 18:53 -0800 |
| Subject | Re: Is this the right location to launch IDLE? |
| From | Chris Rebert <clp2@rebertia.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.394.1330916040.3037.python-list@python.org> (permalink) |
On Sun, Mar 4, 2012 at 3:07 PM, John Salerno <johnjsal@gmail.com> 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
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Is this the right location to launch IDLE? John Salerno <johnjsal@gmail.com> - 2012-03-04 15:07 -0800
Re: Is this the right location to launch IDLE? Chris Rebert <clp2@rebertia.com> - 2012-03-04 18:53 -0800
Re: Is this the right location to launch IDLE? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-03-04 22:33 -0500
Re: Is this the right location to launch IDLE? John Salerno <johnjsal@gmail.com> - 2012-03-04 19:51 -0800
Re: Is this the right location to launch IDLE? Chris Rebert <clp2@rebertia.com> - 2012-03-04 20:07 -0800
Re: Is this the right location to launch IDLE? John Salerno <johnjsal@gmail.com> - 2012-03-04 21:00 -0800
Re: Is this the right location to launch IDLE? John Salerno <johnjsal@gmail.com> - 2012-03-04 21:00 -0800
csiph-web