On Fri, Jun 11, 2010 at 7:32 PM, Yang Zhang <yanghatespam@???> wrote:
> I'd like to run Python scripts but with the same environment (DB
> setup, etc.) as when I run paster serve or nosetests on my Pylons
> project. Is there any convenient way to do this? (e.g.: `paster run
> development.ini myapp.daemon.blah`)
There are a bunch of recipes for this with different frameworks, but
the thing I would suggest is "paster request" -- this runs a request
from the command-line, so everything is exactly like it would be on
the web, only from the command line.
--
Ian Bicking | http://blog.ianbicking.org
--
You received this message because you are subscribed to the Google Groups "Paste Users" group.
To post to this group, send email to paste-users@???.
To unsubscribe from this group, send email to paste-users+unsubscribe@???.
For more options, visit this group at http://groups.google.com/group/paste-users?hl=en.