Re: imports and exec

2010-05-17 Thread Paul Carter
On May 16, 4:22 pm, Patrick Maupin wrote: > On May 16, 1:51 pm, Paul Carter wrote: > > > > > We are using python for our build system. Each subproject dir has a > > python script that builds it. Parent dirs have python scripts that > > recurse into their child

imports and exec

2010-05-16 Thread Paul Carter
(see the commented out code). Everything worked fine when I did that. Can someone set me straight? Suggestions on avoiding this problem are welcome as well! Thanks in advance. Paul Carter -- http://mail.python.org/mailman/listinfo/python-list

Re: module: zipfile.writestr - line endings issue

2007-08-15 Thread Paul Carter
On Aug 15, 3:33 am, Suresh Babu Kolla <[EMAIL PROTECTED]> wrote: > Paul Carter wrote: > > > The problem is with how you are opening the file. You need to open in > > binary mode if you wish to read your file unaltered. Also, file() is > > preferred over open() these

Re: module: zipfile.writestr - line endings issue

2007-08-14 Thread Paul Carter
rpret correctly though.) > > Maybe the issue lies with this way (i.e. dfile.read()) of writing the > file to the archive...possibly. > > Damon > Please don't top post. The problem is with how you are opening the file. You need to open in binary mode if you wish to read your