Skip to content

Instantly share code, notes, and snippets.

@jayd3e
Created January 31, 2014 22:54
Show Gist options
  • Save jayd3e/8744910 to your computer and use it in GitHub Desktop.
Save jayd3e/8744910 to your computer and use it in GitHub Desktop.
from pyramid.paster import bootstrap
def main():
# Bootstrap
env = bootstrap('production.ini')
request = env['request']
db = request.db
tm = request.tm
# do work
tm.commit()
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment