Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Changes between Version 7 and Version 8 of ModPythonIntegration


Ignore:
Timestamp:
11/25/05 14:29:20 (14 years ago)
Author:
mattc
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ModPythonIntegration

    v7 v8  
    3636 
    3737Good luck! 
     38 
     39Note: 
     40To get this running on a Linux machine a little more work is required to correctly map file paths.  Here is my working start script: 
     41{{{ 
     42import pkg_resources 
     43pkg_resources.require("TurboGears") 
     44 
     45import cherrypy 
     46from os.path import * 
     47import sys 
     48 
     49def mp_setup(): 
     50    pass 
     51 
     52if exists(join(dirname(__file__), "setup.py")): 
     53    cherrypy.config.update(file=join(dirname(__file__),"dev.cfg")) 
     54else: 
     55    cherrypy.config.update(file=join(dirname(__file__),"prod.cfg")) 
     56 
     57from pylucenetest.controllers import Root 
     58 
     59cherrypy.root = Root() 
     60}}}