diff --git a/flask_migrate/__init__.py b/flask_migrate/__init__.py index d7be2c1..38a9458 100755 --- a/flask_migrate/__init__.py +++ b/flask_migrate/__init__.py @@ -62,7 +62,7 @@ def call_configure_callbacks(self, config): config = f(config) return config - def get_config(self, directory, x_arg=None, opts=None): + def get_config(self, directory=None, x_arg=None, opts=None): if directory is None: directory = self.directory config = Config(os.path.join(directory, 'alembic.ini')) @@ -92,7 +92,7 @@ def option(self, *args, **kwargs): def decorator(f): return f return decorator - + MigrateCommand = FakeCommand()