Skip to content

Commit

Permalink
Also check for dist-packages for first party apps (#21)
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Johnson <[email protected]>
  • Loading branch information
shosca and adamchainz authored Dec 14, 2020
1 parent 88dec52 commit 99ce59a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
History
=======

* Also assume modules in ``dist-packages`` are third-party apps.

1.1.0 (2020-12-13)
------------------

Expand Down
2 changes: 1 addition & 1 deletion src/django_linear_migrations/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def ready(self):
def is_first_party_app_config(app_config):
# Check if it seems to be installed in a virtualenv
path = Path(app_config.path)
return "site-packages" not in path.parts
return "site-packages" not in path.parts and "dist-packages" not in path.parts


def first_party_app_configs():
Expand Down

0 comments on commit 99ce59a

Please sign in to comment.