import os
import zipfile

# Creates a zip bundle with the files of the input file bundle-changes-zip.txt
# This is for bundling changes atomically straight from SVN

os.chdir("..")

fh = open('tools' + os.sep + 'bundle-changes-zip.txt')
lines = fh.read()
fh.close()

listLines = lines.split("\n")

with zipfile.ZipFile('bundled-changes.zip', 'w') as myzip:
	for file in listLines:
		if file != "":
			myzip.write(file)

