Support __path__ in _xmlplus

git-svn-id: http://svn.pyinstaller.org/trunk@396 8dd32b29-ccff-0310-8a9a-9233e24343b1
This commit is contained in:
naufraghi
2007-12-21 18:52:54 +00:00
parent 049cd3747b
commit 474664b470
+2
View File
@@ -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