retrieve_sector_data: add another .parent

This commit is contained in:
Fabian Neumann 2023-05-12 14:10:04 +02:00
parent 67ef38b35e
commit b2216355f1

View File

@ -28,7 +28,7 @@ if __name__ == "__main__":
url = "https://zenodo.org/record/5824485/files/pypsa-eur-sec-data-bundle.tar.gz"
tarball_fn = Path(f"{rootpath}/sector-bundle.tar.gz")
to_fn = Path(rootpath) / Path(snakemake.output[0]).parent
to_fn = Path(rootpath) / Path(snakemake.output[0]).parent.parent
logger.info(f"Downloading databundle from '{url}'.")
disable_progress = snakemake.config["run"].get("disable_progressbar", False)