Skip to content
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: 2 additions & 0 deletions isort/finders.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@ def find(self, module_name: str) -> Optional[str]:
return sections.STDLIB
elif self.conda_env and self.conda_env in prefix:
return sections.THIRDPARTY
if os.getcwd() in package_path:
return sections.FIRSTPARTY
elif os.path.normcase(prefix).startswith(self.stdlib_lib_prefix):
return sections.STDLIB # pragma: no cover - edge case for one OS. Hard to test.
return self.config.default_section
Expand Down