mirror of
https://github.com/yandex/pgmigrate.git
synced 2024-11-13 00:14:22 +03:00
Fix subdir handling in migrations dir
This commit is contained in:
parent
1305fd109a
commit
676082c3a7
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user