Skip to content

Commit

Permalink
fix: api, utils and bridge should unload too
Browse files Browse the repository at this point in the history
  • Loading branch information
CNSeniorious000 committed Aug 23, 2024
1 parent 9be47f0 commit 4e2c16c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions reasonify-headless/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,7 @@

if __debug__:
for module in tuple(sys.modules): # for HMR
if module.startswith("reasonify") or module.startswith("promplate_recipes"):
del sys.modules[module]
for prefix in ("reasonify", "promplate_recipes", "api", "utils", "bridge"):
if module.startswith(prefix):
del sys.modules[module]
break

0 comments on commit 4e2c16c

Please sign in to comment.