diff --git a/hooks/hook-xml.py b/hooks/hook-xml.py index f5a9933..1c4e80a 100644 --- a/hooks/hook-xml.py +++ b/hooks/hook-xml.py @@ -38,5 +38,7 @@ def hook(mod): if txt[:-3] == ".py": txt = txt + 'c' co = marshal.loads(open(txt, 'rb').read()[8:]) + old_pth = mod.__path__[:] mod.__init__('xml', txt, co) + mod.__path__.extend(old_pth) return mod