Re: .py and .pyc files in read-only directory

2011-10-14 Thread Terry
Thanks, that's very useful. And it explains why Python Math wants to rewrite the .pyc files: imp.get_magic() returns (null) whereas on my Mac where I compiled them, get_magic() returns '\x03\xf3\r\n'. Now I just have to figure out why I'm getting nothing useful from get_magic(). I assume this w

Re: .py and .pyc files in read-only directory

2011-10-14 Thread Ian Kelly
On Fri, Oct 14, 2011 at 1:31 PM, Chris Rebert wrote: > On Fri, Oct 14, 2011 at 11:04 AM, Terry wrote: >> I'm having a problem with my iPhone/iPad app, Python Math, a Python >> 2.7 interpreter. All the Python modules are delivered in what Apple >> calls the app bundle. They are in a read-only dire

Re: .py and .pyc files in read-only directory

2011-10-14 Thread Chris Rebert
On Fri, Oct 14, 2011 at 11:04 AM, Terry wrote: > I'm having a problem with my iPhone/iPad app, Python Math, a Python > 2.7 interpreter. All the Python modules are delivered in what Apple > calls the app bundle. They are in a read-only directory. This means > that Python cannot write .pyc files to