home *** CD-ROM | disk | FTP | other *** search
/ linuxmafia.com 2016 / linuxmafia.com.tar / linuxmafia.com / mywiki / moin.cgi < prev   
Text File  |  2006-03-17  |  1KB  |  46 lines

  1. #!/usr/bin/python
  2. # -*- coding: iso-8859-1 -*-
  3. """
  4.     MoinMoin - CGI Driver Script
  5.  
  6.     @copyright: 2000-2005 by Jⁿrgen Hermann <jh@web.de>
  7.     @license: GNU GPL, see COPYING for details.
  8. """
  9.  
  10. # System path configuration
  11.  
  12. import sys
  13.  
  14. # Path of the directory where wikiconfig.py is located.
  15. # YOU NEED TO CHANGE THIS TO MATCH YOUR SETUP.
  16. #sys.path.insert(0, '/etc/moin')
  17. sys.path.insert(0, '/usr/share/moin/config')
  18.  
  19. # Path to MoinMoin package, needed if you installed with --prefix=PREFIX
  20. # or if you did not use setup.py.
  21. ## sys.path.insert(0, 'PREFIX/lib/python2.3/site-packages')
  22.  
  23. # Path of the directory where farmconfig.py is located (if different).
  24. sys.path.insert(0, '/etc/moin')
  25.  
  26. # Debug mode - show detailed error reports
  27. ## import os
  28. ## os.environ['MOIN_DEBUG'] = '1'
  29.  
  30. # This is used to profile MoinMoin (default disabled)
  31. hotshotProfiler = 0
  32.  
  33. # ---------------------------------------------------------------------
  34.  
  35. if hotshotProfiler:
  36.     import hotshot
  37.     prof = hotshot.Profile("moin.prof")
  38.     prof.start()
  39.  
  40. from MoinMoin.request import RequestCGI
  41. request = RequestCGI()
  42. request.run()
  43.  
  44. if hotshotProfiler:
  45.     prof.close()
  46.