cubicweb/__main__.py
author Denis Laxalde <denis.laxalde@logilab.fr>
Fri, 29 Jan 2016 17:22:25 +0100
changeset 11099 5fdbf6f2db88
child 12253 9165f4b7426b
permissions -rwxr-xr-x
Add a __main__ to cubicweb This avoids calling cubicweb-ctl relatively in tests and could be useful in virtualenv. This is just a copy of bin/cubicweb-ctl file, which should probably be generated from a setuptools entry points.

from cubicweb.cwctl import run
import sys

run(sys.argv[1:])