I have .pkg file that I want to extract with python :
.pkg
from zipfile import ZipeFile with ZipeFile(PATH) as t: t.extractall()