diff --git a/reasonify-headless/load.py b/reasonify-headless/load.py index cc3806b..13eeb52 100644 --- a/reasonify-headless/load.py +++ b/reasonify-headless/load.py @@ -15,5 +15,5 @@ if __debug__: for module in tuple(sys.modules): # for HMR - if module.startswith("reasonify"): - sys.modules.pop(module).__dict__.clear() + if module.startswith("reasonify") or module.startswith("promplate_recipes"): + del sys.modules[module]