testman-dataset / create-tar-file.py
danbrown's picture
testman data
c378cfc
raw
history blame
257 Bytes
import tarfile
from config import TAR_FILE_IMAGES, TAR_FILE_TEXTS
if __name__ == "__main__":
with tarfile.open( TAR_FILE_IMAGES, 'w:xz') as tar:
tar.add('./images')
with tarfile.open( TAR_FILE_TEXTS, 'w:xz') as tar:
tar.add('./texts')