diff options
| author | Alexis Metaireau <alexis@notmyidea.org> | 2017-03-29 00:03:25 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-03-29 00:03:25 +0200 |
| commit | 1b94f6738a1cfc117e2af78afdafdfeff84aecd0 (patch) | |
| tree | 2d11831527231ee06eb6b4b3be168d6fdba203aa /budget/run.py | |
| parent | acbe2c10d8fb86ef04af60fc257ce4d51ffee45c (diff) | |
| parent | aaf9f9f23754dd97af0dc9daa5215d42f8017d68 (diff) | |
| download | ihatemoney-mirror-1b94f6738a1cfc117e2af78afdafdfeff84aecd0.zip ihatemoney-mirror-1b94f6738a1cfc117e2af78afdafdfeff84aecd0.tar.gz ihatemoney-mirror-1b94f6738a1cfc117e2af78afdafdfeff84aecd0.tar.bz2 | |
Merge pull request #186 from spiral-project/tox
Tox support
Diffstat (limited to 'budget/run.py')
| -rw-r--r-- | budget/run.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/budget/run.py b/budget/run.py index f006ae9..9745b60 100644 --- a/budget/run.py +++ b/budget/run.py @@ -1,4 +1,5 @@ import os +import os.path import warnings from flask import Flask, g, request, session @@ -11,6 +12,7 @@ from api import api from utils import PrefixedWSGI from utils import minimal_round +__HERE__ = os.path.dirname(os.path.abspath(__file__)) app = Flask(__name__) @@ -65,7 +67,7 @@ if pre_alembic_db(): # auto-execute migrations on runtime with app.app_context(): - upgrade() + upgrade(os.path.join(__HERE__, 'migrations')) # mail mail.init_app(app) |
