Skip to content

Commit

Permalink
🐛 remove submoded in dispose
Browse files Browse the repository at this point in the history
  • Loading branch information
RF-Tar-Railt committed Sep 30, 2024
1 parent 5777153 commit 2b1c788
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arclet/entari/plugin/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ def dispose(self):
for submod in self.submodules.values():
delattr(submod, "__plugin__")
sys.modules.pop(submod.__name__, None)
service._submoded.pop(submod.__name__, None)
if submod.__spec__ and submod.__spec__.cached:
Path(submod.__spec__.cached).unlink(missing_ok=True)
self.submodules.clear()
Expand Down

0 comments on commit 2b1c788

Please sign in to comment.