Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PYZ file extension

I have searched but can find no way to read PYZ files. I know they are a type of zip file, but I can not read them by way of a zip program.

This is in reference to another question where I need access to the _init__ file inside a directory structure that is created by pyinstaller when attempting to build an exe. During this process, a out00-PYZ.pyz file is created, and the error references a file inside the PYZ.

The thread here describes how to decompile from an EXE to obtain PYC files, but doesn't work with PYZ files.

Surely there is someway to crack open this commonly used pythonic file?

Many thanks in advance.

like image 759
Praxis Avatar asked Oct 30 '22 18:10

Praxis


1 Answers

If you had used Pyinstaller you can go to the location of directory which contains .pyz then go SHIFT and right click on directory, go to open command window here, then: pyi-archive_viewer out00-PYZ.pyz

like image 193
grabhints Avatar answered Nov 09 '22 14:11

grabhints