We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad10531 commit 102096bCopy full SHA for 102096b
src/sasctl/pzmm/zipModel.py
@@ -38,9 +38,9 @@ def zipFiles(fileDir, modelPrefix):
38
# Include H2O.ai MOJO files
39
fileNames.extend(sorted(Path(fileDir).glob('*.mojo')))
40
41
- with zipfile.ZipFile(Path(fileDir) / (modelPrefix + '.zip'), mode='w') as zFile:
+ with zipfile.ZipFile(str(Path(fileDir) / (modelPrefix + '.zip')), mode='w') as zFile:
42
for file in fileNames:
43
- zFile.write(file, arcname=file.name)
+ zFile.write(str(file), arcname=file.name)
44
45
- with open(Path(fileDir) / (modelPrefix + '.zip'), 'rb') as zipFile:
+ with open(str(Path(fileDir) / (modelPrefix + '.zip')), 'rb') as zipFile:
46
return io.BytesIO(zipFile.read())
0 commit comments