Am 10.10.2014 12:38, schrieb Gelonida N:
> but what I'm stuck is to know how to modify a .pyz file. 
[...]
> but the pyinstaller .pyz file seems to be a in a different file format. 

Yes, the PYZ file format is not a zip file, it is a special format,
introduced some time before Python learnedn zipimport.

And the PYZ file format is most probably not able to "update", so you
will have to create an new file from scratch. See
PyInstller.build.PYZ.assemble() for build the file and
PyInstaller.loader.pyi_archive for reading the file. Please keep in mind
that the PYZ not only contains modules but also some flags and the scripts.

I just tried collecting some information for you and discovered, that
PyInstaller already supports loading the PYZ-Archive from an external
file. It is as simply as using:

exe = EXE(append_pkg=False,
          pyz,
          a.scripts,
          ....

See the commit I just pushed.

BTW; Regarding you question about sys.meta_path: See
PyInstaller.loader._pyi_bootstrap and others.

-- 
Schönen Gruß
Hartmut Goebel
Dipl.-Informatiker (univ), CISSP, CSSLP
Information Security Management, Security Governance, Secure Software
Development

Goebel Consult, Landshut
http://www.goebel-consult.de

Blog:
http://www.goebel-consult.de/blog/view-your-certificates-email-address-0.3.0-published

Kolumne: http://www.cissp-gefluester.de/2012-02-bring-your-own-life-glosse

Goebel Consult ist Mitglied bei http://www.7-it.de/

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.

Reply via email to