diff --git a/scripts/build/download_packages_appveyor.py b/scripts/build/download_packages_appveyor.py index 16afef63..0e73dbc2 100755 --- a/scripts/build/download_packages_appveyor.py +++ b/scripts/build/download_packages_appveyor.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -"""Download packages from github actions artifacts +"""Download packages from appveyor artifacts """ import os @@ -76,7 +76,7 @@ def main(): ) resp.raise_for_status() if not dest.parent.exists(): - dest.parent.mkdir() + dest.parent.mkdir(parents=True) with dest.open("wb") as f: f.write(resp.content) diff --git a/scripts/build/download_packages_github.py b/scripts/build/download_packages_github.py index cd8003e5..0d0a0da5 100755 --- a/scripts/build/download_packages_github.py +++ b/scripts/build/download_packages_github.py @@ -60,7 +60,7 @@ def main(): dest = Path("packages") if not dest.exists(): logger.info(f"creating dir {dest}") - dest.mkdir() + dest.mkdir(parents=True) for artifact in artifacts: logger.info(f"downloading {artifact['name']} archive")