Skip to content

Commit

Permalink
Fix subdir handling in migrations dir
Browse files Browse the repository at this point in the history
  • Loading branch information
secwall committed Apr 3, 2018
1 parent 1305fd1 commit 676082c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pgmigrate.py
Expand Up @@ -220,7 +220,7 @@ def _get_files_from_dir(path):
"""
for root, _, files in os.walk(path):
for fname in files:
yield fname, os.path.join(root, fname)
yield os.path.basename(fname), os.path.join(root, fname)


def _get_migrations_info_from_dir(base_dir):
Expand Down

0 comments on commit 676082c

Please sign in to comment.