Skip to content

Commit

Permalink
Make directory as optional parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoholiveira committed Aug 25, 2017
1 parent dcffe1e commit 7e6f511
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flask_migrate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
Expand Down Expand Up @@ -92,7 +92,7 @@ def option(self, *args, **kwargs):
def decorator(f):
return f
return decorator

MigrateCommand = FakeCommand()


Expand Down

0 comments on commit 7e6f511

Please sign in to comment.