Maybe exec_environment: http://web2py.com/book/default/chapter/04#Execution-Environment
On Thursday, November 24, 2011 1:43:11 PM UTC-5, elffikk wrote: > > python web2py.py -S welcome/default/index -M -N > > is what I was looking for, > but I need the ability to execute it from python and want to pass > arguments and vars > would like to do that without subprocesses (like os.system or others) > > something like > > import gluon.main > gluon.main.wsgi.exec(app,controller, args, vars) > >

