[Zope] compiling zope source

Stuart 'Zen' Bishop zen@cs.rmit.edu.au
Tue, 21 Dec 1999 16:10:02 +1100 (EST)


On Tue, 21 Dec 1999, Terry Kerr wrote:

> I made changes to the OFS/DTMLDocument.py file...actually I changed the
> default text that is put into a newly created DTML Document.  How do I
> now get my change to take effect.  I assume I need to compile the
> DTMLDocument.py to DTMLDocument.pyc or something?  How do I do this?

Python automatically compiles .py files to .pyc. If you want to prove it
to yourself, just delete the .pyc and it should magically reappear after
Zope has started up.

If it doesn't, it means your out of disk space, or the user Zope is running
as doesn't have write access to that directory, in which case you can
either change your permissions or manually force a compile (which I won't
explain here as I am feeling too lazy to look up the functions to call)

-- 
 ___
   //     Zen (alias Stuart Bishop)     Work: zen@cs.rmit.edu.au
  // E N  Senior Systems Alchemist      Play: zen@shangri-la.dropbear.id.au
 //__     Computer Science, RMIT 	 WWW: http://www.cs.rmit.edu.au/~zen