as wrote:
> Hi
> can you give me example.What I am trying to get is something similiar
> with Tomcat.
> /webapps/app1
> /webapps/app2
> /webapps/app3
well, you could do this:
== file app1.py ==
from cherrypy import cpg
class Root:
def index(self):
...
== file app2.py ==
from cherrypy import cpg
class Root:
def index(self):
...
== file app3.py ==
from cherrypy import cpg
class Root:
def index(self):
...
== file main.py ==
from cherrypy import cpg
import app1, app2, app3
cpg.root.app1 = app1.Root()
cpg.root.app2 = app2.Root()
cpg.root.app3 = app3.Root()
cpg.server.start()
Remi.