program with raw_input prompt behaves differently after compile

tim tim.vets at skynet.be
Sun Dec 25 10:06:58 EST 2005


It was kindof a stupid mistake on my part: I had to put 'import os' at 
the very beginning, and not only in one of my two function definitions.
Thanks anyway, thanks to your link I also found how to change the colour 
of the console...neat :p !
Tim

Hans Nowak wrote:

>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.
>
>  
>





More information about the Python-list mailing list