handle linting a project in pwd

When calling "django-migration-linter ."
be able to handle it (especially with cache)
This commit is contained in:
David Wobrock committed 2019-01-20 12:17:11 +01:00
1 parent 75c969c6a9
commit 009153fbf4
5 files changed
+30 -3

No files matched your search

+1 -1
View File
@@ -49,7 +49,7 @@ def find_project_settings_module(path):
def split_path(path):
a, b = os.path.split(path)
return (split_path(a) if (len(a) > 0 and a != "/") else []) + [b]
return (split_path(a) if (len(a) > 0 and a != "/") else []) + ([b] if b else [])
def split_migration_path(migration_path):