mirror of
https://github.com/kennethreitz-archive/pyinstaller.git
synced 2026-06-05 23:50:17 +00:00
Support __path__ in _xmlplus
git-svn-id: http://svn.pyinstaller.org/trunk@396 8dd32b29-ccff-0310-8a9a-9233e24343b1
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user