How to use patool in a pyinstaller .exe
问题 I have a simple python script that unpack a file.rar It works fine until I compile it into an exe with pyinstaller and it stops working. Python 3.7 Windows 7 PyInstaller 3.4 My file.py from pyunpack import Archive import os import os.path as path import subprocess path=os.getcwd() Archive('MyFile.rar').extractall(path) I tried to place myself in: Python37-32\Lib\site-packages\PyInstaller\hooks and add hook called "hook-patoolib.py" with the following content hook-patoolib #-------------------