I have a py script in which in a loop I create new files as fp = open( filenam, "w")
When I run it normally like from IDle, it run fast. Then I decide to make a .exe of it using py2exe and all of a sudden it takes a lots of time to write to file. Its a larger program then smply writing to file. So to confirm that it is writing to file that is so slow, I remove only the open and close , so I don't write to file anymore, and the .exe was very fast. I put the code back and it was slow again. I am clueless about what this could cause the problem. Any suggestion ? What does py2exe do with the open and write of files ?