[Moin-user] wsgi, can't find wikiconfig.py using relative paths

Mattias Skarin i92matsk at yahoo.com
Sun Nov 29 10:43:27 EST 2009


Running several wikis, I have setup:
wikidir/cgi-bin/moin.wsgi
wikidir/wikiconfig.py

With cgi, I could tell the moin.cgi where wikiconfig was using:
sys.path.insert(0, '..')

but with wsgi that no longer applies. I need to provide absolute paths to all wikiconfig.py dirs (..aswell as to data, overlay dirs). 


Obviously I am missing some basic understanding of wsgi.. Any enlightenment is appreciated :) Also ides of how to get around using absolute paths in moin.wsgi and wikiconfig.py.. 

Cheers
Mattias



      




More information about the Moin-user mailing list