.py and .pyc files in read-only directory

Terry twestley at gmail.com
Fri Oct 14 16:39:24 EDT 2011


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 would have to be fixed to try solution 1), i.e., leaving out the .py files and delivering only the .pyc.

Terry



More information about the Python-list mailing list