summaryrefslogtreecommitdiff
path: root/alembic/__init__.py
blob: 09d91dfaca4d7c3b5b4e799b0539f972eabbfc97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from os import path

__version__ = '0.2.0'

package_dir = path.abspath(path.dirname(__file__))


from alembic import op

class _ContextProxy(object):
    """A proxy object for the current :class:`.EnvironmentContext`."""
    def __getattr__(self, key):
        return getattr(_context, key)
context = _ContextProxy()