program with raw_input prompt behaves differently after compile

Hans Nowak hans at zephyrfalcon.org
Sat Dec 24 17:42:40 EST 2005


tim wrote:

> I want to write a program that looks into a given folder, groups files 
> that have a certain part of the filename in common and then copy those 
> groups one at a time to another place, using the raw_input prompt to 
> continue or break.
> 
 > [...]
> 
> It works fine when I run this from PythonWin IDE, but after compiling an 
> executable from it (py2exe) it exits whatever I type in the 'continue?' 
> prompt.
> What am I doing wrong?

Maybe this helps:

http://forums.devshed.com/python-programming-11/eof-error-with-raw-input-from-a-exe-text-color-187633.html

The solution described here was to compile the program as a console app, 
rather than a Windows app.

-- 
Hans Nowak
http://zephyrfalcon.org/



More information about the Python-list mailing list