[Moin-user] Adding macros

Davor Cengija davor.cengija at mail.inet.hr
Fri May 2 08:34:01 EDT 2003


I installed some additional macros (e.g. PageHits) by putting them to 
<lib>/MoinMoin/macro dir. It works.

However, I'd like to have them in a separate directory tree so that I can 
exchange MoinMoin versions easily. So I created, say, 
/tmp/wikicontrib/MoinMoin/macro dir structure, copied __init__.py from 
MoinMoin/macro and placed PageHits.py there. Additionally, moin.cgi has the 
following line

sys.path.append('/tmp/wikicontrib')

But [[PageHits]] macro is ignored. 

How can I achieve the described behaviour?

Thanks.
-- 
davor.cengija at mail.inet.hr





More information about the Moin-user mailing list