# Path: app.py



import os
import sys
import shelve
from os import path
from cPickle import HIGHEST_PROTOCOL
from contextlib import closing
from app import app
# -*- coding: utf-8 -*-
"""
    database.simple_persistence
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Simple persistence
    http://flask.pocoo.org/snippets/25/
"""

from __future__ import with_statement
sys.path.insert(0, os.path.dirname(os.path.abspath(os.path.dirname(__file__))))



SHELVE_DB = 'shelve.db'

# Path: app.py



# Path: database/simple_persistence.py
import os
import sys
import shelve
from os import path
from cPickle import HIGHEST_PROTOCOL
from contextlib import closing
from app import app

# -*- coding: utf-8 -*-
"""
    database.simple_persistence
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Simple persistence
    http://flask.pocoo.org/snippets/25/
"""

from __future__ import with_statement
sys.path.insert(0, os.path.dirname(os.path.abspath(os.path.dirname(__file__))))



SHELVE_DB = 'shelve.db'

app.config['SHELVE_DB'] = SHELVE_DB