Skip to content

Commit

Permalink
fixup! added script to create indices for backward compatibility tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Bogensberger committed Jun 27, 2016
1 parent b8a182a commit 7bdd006
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions blackbox/bwc/create_bwc_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ def compress(data_dir, output_dir, target):
target = os.path.join(abs_output_dir, target)
if os.path.exists(target):
os.remove(target)
zipf = zipfile.ZipFile(target, 'w', zipfile.ZIP_DEFLATED)
zipdir(data_dir, zipf, os.path.dirname(data_dir))
zipf.close()
with zipfile.ZipFile(target, 'w', zipfile.ZIP_DEFLATED) as zipf:
zipdir(data_dir, zipf, os.path.dirname(data_dir))


def zipdir(path, ziph, basePath):
Expand Down

0 comments on commit 7bdd006

Please sign in to comment.