Answers for "get file in file zip python"

0

get file in file zip python

from zipfile import ZipFile
import os
def getfilespath(filename):
    dir = os.path.dirname(__file__)
    return os.path.join(dir, filename) 
path =  getfilespath("bbc-fulltext.zip")
archive = ZipFile(path, 'r')
files = archive.namelist()
Posted by: Guest on August-14-2021

Python Answers by Framework

Browse Popular Code Answers by Language