Re: Python 2.5 execfile() works only once, why ?

2009-10-10 Thread Steven D'Aprano
On Fri, 09 Oct 2009 20:15:48 +0200, Stef Mientki wrote: [...] The above code (with or without the stdout redirection), works perfect, ... the first time ... but does (almost?) nothing (doesn't crash, try / except around execfile), although the source file self.Edit.Filename has changed.

Python 2.5 execfile() works only once, why ?

2009-10-09 Thread Stef Mientki
hello, I'm working on a kind of IDE, to build and distribute Python programs. One of the parts is editing a build file for py2exe and running the modified script. In the script editor I've an accelerator key, to launch these tasks: - save modified script file - run modified script file -

Re: Python 2.5 execfile() works only once, why ?

2009-10-09 Thread Carl Banks
On Oct 9, 11:15 am, Stef Mientki stef.mien...@gmail.com wrote: hello, I'm working on a kind of IDE, to build and distribute Python programs. One of the parts is editing a build file for py2exe and running the modified script. In  the script editor I've an accelerator key, to launch these