'Creates a ZIP archive of the files in the input directory.
Args:
input_dir: the name of the input directory.
output_file: the name of the output ZIP archive without extension.'

def MakeZip(self, input_dir, output_file):

    logging.info('Generating    zip    template    file    at    %s', output_file)
    (basename, _) = os.path.splitext(output_file)
    shutil.make_archive(basename, 'zip', base_dir='.', root_dir=input_dir, verbose=True)
