[Grok-dev] howto run python scripts with grok application
Jan-Wijbrand Kolman
janwijbrand at gmail.com
Sat Jan 2 09:39:39 EST 2010
Lacko Roman <rlacko at gratex.com> wrote:
> In zope2 it is possible to run custom scripts with command like "bin/instance
run myscript.py" (In myscript.py i want to import some object to ZODB)
>
> How is it possible in grok 1.0 ?
Assuming the ./bin/zopectl script is available in your project you can do:
$ ./bin/zopectl run [myscript]
I actually wonder now whether such an invocation is possible in a WSGI-based
grok project...
regards,
jw
More information about the Grok-dev
mailing list