Skip to content

Commit

Permalink
use absolute path for osm data download
Browse files Browse the repository at this point in the history
  • Loading branch information
yerbol-akhmetov committed Oct 15, 2024
1 parent 61a1821 commit 722e9cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/download_osm_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import shutil
from pathlib import Path

from _helpers import configure_logging, create_logger, read_osm_config
from _helpers import configure_logging, create_logger, read_osm_config, BASE_DIR
from earth_osm import eo

logger = create_logger(__name__)
Expand Down Expand Up @@ -99,8 +99,8 @@ def convert_iso_to_geofk(

run = snakemake.config.get("run", {})
RDIR = run["name"] + "/" if run.get("name") else ""
store_path_resources = Path.joinpath(Path().cwd(), "resources", RDIR, "osm", "raw")
store_path_data = Path.joinpath(Path().cwd(), "data", "osm")
store_path_resources = Path.joinpath(Path(BASE_DIR), "resources", RDIR, "osm", "raw")
store_path_data = Path.joinpath(Path(BASE_DIR), "data", "osm")
country_list = country_list_to_geofk(snakemake.params.countries)

eo.save_osm_data(
Expand Down

0 comments on commit 722e9cf

Please sign in to comment.