On May 2, 10:06 am, Michael Hoffman <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Hello > > I have done python for some time now. I'm forgetting things. > > > This is the faulty line : outfile = open("output/mainwindow.h",'w') > > > I thought it would have created the folder ouput and the file > > mainwindow.h for me but it's throwing an error > > No, you have to create the folder first. Try os.makedirs() > -- > Michael Hoffman
Thanks Mike -- http://mail.python.org/mailman/listinfo/python-list