import zipfile with zipfile.ZipFile("MyFile.jar") as zipref: zipref.extractall(MyFilePath) # Treats Jar as Zip (usually doesn't work)