Skip to content

Commit

Permalink
Use recursive mkdir when downloading jars
Browse files Browse the repository at this point in the history
  • Loading branch information
manics committed Aug 11, 2020
1 parent c34aa4e commit 4bfc11c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/omero/plugins/import.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,8 +579,7 @@ def download_omero_java(self, version):
omero_java_zip = OMERO_JAVA_ZIP.format(version=version)
self.ctx.err("Downloading %s" % omero_java_zip)
jars_dir, omero_java_txt = self._userdir_jars(parentonly=True)
if not jars_dir.exists():
jars_dir.mkdir()
jars_dir.makedirs_p()
with requests.get(omero_java_zip) as resp:
with ZipFile(BytesIO(resp.content)) as zipfile:
topdirs = set(f.filename.split(
Expand Down

0 comments on commit 4bfc11c

Please sign in to comment.