Storing bytecode files in an alternative directory
14 Oct
2011
14 Oct
'11
8:41 a.m.
PEP 304 was withdrawn, but those of us embedding Python need a way to put .py files in read-only memory and .pyc files in a separate writable directory. Short of resurrecting PEP 304, is there a known mod that I could use for this purpose?
My situation is an iPhone/iPad app (http://www.sabonrai.com/PythonMath/). Python source files need to be part of the app bundle which is in a non-writable directory. I've found that even compiling all the .py files doesn't work because the interpreter wants to rebuild .pyc files for certain modules and I get an unlink deny error for them.
Terry
4575
Age (days ago)
4575
Last active (days ago)
0 comments
1 participants
participants (1)
-
Terry Westley