10000 Fix error with lack of PosixPath support by giff-h · Pull Request #1785 · django-extensions/django-extensions · GitHub
[go: up one dir, main page]

Skip to content

Fix error with lack of PosixPath support #1785

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 25, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion django_extensions/import_subclasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def collect_subclasses(self): # type: () -> Dict[str, List[Tuple[str, str]]]
but in future functionality of aliasing subclasses can be added.
"""
result = {} # type: Dict[str, List[Tuple[str, str]]]
for loader, module_name, is_pkg in walk_packages(path=[settings.BASE_DIR]):
for loader, module_name, is_pkg in walk_packages(path=[str(settings.BASE_DIR)]):
subclasses_from_module = self._collect_classes_from_module(module_name)
if subclasses_from_module:
result[module_name] = subclasses_from_module
Expand Down
0