a = zipfile.ZipFile(archive, 'w', zipfile.ZIP_DEFLATED)
for f in fileList:
    print('archiving file %s' % f)
a.write(f, os.path.relpath(f, root))
a.close()
Python zip a sub folder and not the entire folder path