IDLE question

Claudio Grondi claudio.grondi at
Thu Nov 17 12:27:42 CET 2005

now a patch fixing it I have no good feeling about, but it works:

in in
    def restart_subprocess(self):

insert in section:
        # restart subprocess debugger

        # (-Patch)
        # making additional modules available in IDLE directly after
re-start of it:
        self.runsource("import os; from path import path")
        # (Patch-)

        if debug:
This will provide the modules also after restart.

Hope this will not crash elsewhere because of unexpected effects of
inserting the runsource() method at that point in the code without any other
commands which are maybe necessary to keep IDLE consistent.

So IDLE experts, HELP PLEASE !!!


<bobueland at> schrieb im Newsbeitrag
news:1132221788.888868.8370 at
> Okey I tried what you recommended
> My C:\Python24\ looks like this:
> #
> import os
> from btools import *
> When I enter
> C:\Python24>C:\Python24\pythonw.exe C:\Python24\Lib\idlelib\ -r
> C:\Python24\
> in commad propmt IDLE starts up and automatically imports 'os' and all
> names from my btools folder. So far so good. But when I hit Ctrl+F6 and
> restart Python Shell both 'os' and names from btools are gone!
> When I work with IDLE I typically start a new file (File/New Window)
> and when I have written the code I hit (Ctrl+S) to Save and F5 to run.
> This restarts Python Shell and my names from btools are gone. It's no
> solution if I'm forced to go back to command prompt and enter the long
> sequance again.
> Bob

More information about the Python-list mailing list