diff --git a/scripts/geodata/openaddresses/download_openaddresses.py b/scripts/geodata/openaddresses/download_openaddresses.py index 503b7b6a..e8103a9e 100644 --- a/scripts/geodata/openaddresses/download_openaddresses.py +++ b/scripts/geodata/openaddresses/download_openaddresses.py @@ -28,7 +28,7 @@ def download_and_unzip_file(url, out_dir): zip_filename = url.rsplit('/', 1)[-1].strip() zip_local_path = os.path.join(out_dir, zip_filename) - success = download_file(url, zip_local_path) and subprocess.check_call(['unzip', '-o', zip_local_path, '-d', OPENADDRESSES_DIR]) == 0 + success = download_file(url, zip_local_path) and subprocess.check_call(['unzip', '-o', zip_local_path, '-d', out_dir]) == 0 if os.path.exists(zip_local_path): remove_file(zip_local_path)