Skip to content

Commit

Permalink
fix: don't reload modules from site-packages
Browse files Browse the repository at this point in the history
  • Loading branch information
vberlier committed May 7, 2021
1 parent a6064cf commit de2ecab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions beet/toolchain/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ def activate(self):
name
for name, module in sys.modules.items()
if (filename := getattr(module, "__file__", None))
and "site-packages" not in filename
and filename.startswith(self._path_entry)
]

Expand Down

0 comments on commit de2ecab

Please sign in to comment.