1
1
mirror of https://github.com/yandex/pgmigrate.git synced 2024-09-17 15:17:18 +03:00

Fix subdir handling in migrations dir

This commit is contained in:
secwall 2018-04-03 15:06:38 +03:00
parent 1305fd109a
commit 676082c3a7

View File

@ -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):