Ah, sorry - should have mentioned that I found that page. It does, indeed, seem to be exactly what I need. Unfortunately, http://turbogears.org/2.0/docs/_static/wiki20/_download/tg_shell_setup.py, which purports to hold the magic, is an empty file...
Does tg_shell_setup.py exist anywhere else? Thanks! James On Jan 28, 8:31 pm, Daniel Fetchinson <[email protected]> wrote: > > Hello all, > > What's the easiest way to recreate the environment created by "paster > > shell"? > > > I need to run a few non-trivial scripts which use the TG configuration > > and model; having to do "paster shell <myscript.py" would be really > > awkward as I want to pass in command line arguments to my script. > > > It seems the pieces I need are the locating and reading-in of a > > configuration file and the creation of a SQLAlchemy engine I can pass > > to model.init_model. > > > Any suggestions? > > http://www.google.com/search?q=models+outside+tg2 > > And you are feeling lucky :) > > HTH, > Daniel > > -- > Psss, psss, put it down! -http://www.cafepress.com/putitdown -- You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.

