Skip to content
Snippets Groups Projects
Commit 43ebb670 authored by BARTHES Nicolas's avatar BARTHES Nicolas
Browse files

modified path for zipfile

parent 91671b77
No related branches found
No related tags found
No related merge requests found
......@@ -448,10 +448,10 @@ def compile_latex():
import os
import zipfile
folder_path = 'D:/Mouhcine/nirs_workflow/src/Report/figures'
zip_path = 'D:/Mouhcine/nirs_workflow/src/Report/archive_zipfile.zip'
folder_path = Path('Report/figures')
zip_path = Path('Report/')
with zipfile.ZipFile(zip_path, 'w', compression=zipfile.ZIP_DEFLATED, compresslevel=9) as zf:
with zipfile.ZipFile(zip_path / 'archive_zipfile.zip', 'w', compression=zipfile.ZIP_DEFLATED, compresslevel=9) as zf:
for root, dirs, files in os.walk(folder_path):
for file in files:
file_path = os.path.join(root, file)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment