When running the shell, the app can actually be in a/c/f format, so try: $> python web2py.py -S myapp/acontroller -M
That will execute the acontroller.py controller when starting up the shell, so it will also execute any acontroller specific models as well. If you specify myapp/acontroller/afunction, that will execute the afunction() function within acontroller.py, so that should execute any afunction() specific models (I think). Anthony On Sunday, January 15, 2012 4:55:43 PM UTC-5, Robert Clark wrote: > > > If running a web2py shell, how can model files within controller > subdirectories be made available in the environment? > > For example if we have these two model files: > myapp/models/db.py > myapp/models/acontroller/db_controller.py > > Then when launching web2py using: > $> python web2py.py -S myapp -M > > Typing 'db.tables' prints tables defined in db.py > > Is there a way to specify a controller (or function) to execute models > for in a web2py shell? > > Thanks >

