--- a/cwvreg.py Tue Aug 04 18:40:47 2009 +0200
+++ b/cwvreg.py Tue Aug 04 18:43:55 2009 +0200
@@ -10,6 +10,7 @@
from logilab.common.decorators import cached, clear_cache, monkeypatch
from logilab.common.deprecation import deprecated
+from logilab.common.modutils import cleanup_sys_modules
from rql import RQLHelper
@@ -306,6 +307,7 @@
except RegistryOutOfDate:
# modification detected, reset and reload
self.reset()
+ cleanup_sys_modules(path)
self._register_objects(path, force_reload)
def _register_objects(self, path, force_reload=None):