Skip to content
Snippets Groups Projects
Commit 8f82c881 authored by ml bonhomme's avatar ml bonhomme :bee: Committed by Erwan Rouchet
Browse files

Path settings.PONOS_DATA_DIR

parent b23b7add
No related branches found
No related tags found
1 merge request!2249Support extra_files in RQ tasks
......@@ -105,7 +105,7 @@ def download_extra_files(task) -> None:
resp.raise_for_status()
# Write file to a specific data directory
extra_files_dir = settings.PONOS_DATA_DIR / "extra_files"
extra_files_dir = Path(settings.PONOS_DATA_DIR) / "extra_files"
extra_files_dir.mkdir(exist_ok=True)
with open(extra_files_dir / path_name, "wb") as f:
for chunk in resp.iter_content(chunk_size=8192):
......
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