zipping a directory

2008-10-28 Thread Callie Bertsche
Hey Python-ers, I apologize if this is covered in the archives; I think I saw one instance of it but I couldn't get the solution to work out. I'm working on zipping an entire directory to one zip file. I can zip a flat group of files, but when my code encounters a hierarchy of folders, for some

Re: Write a file - beginner's question

2008-07-03 Thread Callie Bertsche
I have a closely related note. How do I write to a relative path with python? Example, source = open('/../../directory/subdirectory/file.extension') What am I missing? -- http://mail.python.org/mailman/listinfo/python-list