Is this the right location to launch IDLE?

Chris Rebert clp2 at rebertia.com
Sun Mar 4 21:53:57 EST 2012


On Sun, Mar 4, 2012 at 3:07 PM, John Salerno <johnjsal at 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



More information about the Python-list mailing list