running IDLE from another program?

Kent Johnson kent at kentsjohnson.com
Sat Apr 1 19:08:10 EST 2006


John Salerno wrote:
> Kent Johnson wrote:
> 
>>The working directory must be wrong. Try calling Python directly with 
>>full paths:
>>
>>C:\Python24\pythonw C:\Python24\Lib\idlelib\idle.pyw -r C:\path\to\myprog.py
> 
> 
> Perfect! Thank you so much!
> 
> I put this line in the command line field, and I left "working 
> directory" empty because I'm not sure what goes there. Should it be the 
> main python directory, or the directory of the file being run? Either 
> way, it seems to work without a working directory.

Great! I would set the working directory to the dir containing your 
program. That way if you have multiple modules in the program you will 
be able to import them without any trouble.

Kent



More information about the Python-list mailing list