Source

quicktasks / quicktasks / scripts.py

Full commit
1
2
3
4
5
6
7
import sys
from pyramid.paster import bootstrap

def populate():
    app = bootstrap(sys.argv[1])
    from . import models as m
    m.Base.metadata.create_all()