bin/cubicweb-ctl
author Denis Laxalde <denis.laxalde@logilab.fr>
Fri, 07 Apr 2017 15:23:38 +0200
branch3.25
changeset 12137 4db0f2251960
parent 0 b97547f5f1fa
child 12253 9165f4b7426b
permissions -rwxr-xr-x
[pyramid] Avoid shutting down the repository at exit if it's already shutting down For install `cubicweb-ctl pyramid` command will explicitly call `repo.shutdown()` so the atexit hook is redundant. Prevent the latter to be executed when the repository is already shutting down (otherwise one gets an assertion error).

#!/usr/bin/env python
from cubicweb.cwctl import run
import sys
run(sys.argv[1:])