From 71c0aa2c5f8d449d54de9c55b30fe2237670a52c Mon Sep 17 00:00:00 2001 From: spwoodcock Date: Wed, 11 Oct 2023 08:06:48 +0100 Subject: [PATCH] fix: create basemap directory automatically --- osm_fieldwork/basemapper.py | 1 + 1 file changed, 1 insertion(+) diff --git a/osm_fieldwork/basemapper.py b/osm_fieldwork/basemapper.py index 28e8946a7..39d83e81d 100755 --- a/osm_fieldwork/basemapper.py +++ b/osm_fieldwork/basemapper.py @@ -430,6 +430,7 @@ def create_basemap_file( else: base = outdir base = f"{base}/{source}tiles" + Path(base).mkdir(parents=True, exist_ok=True) if source and not tms: basemap = BaseMapper(boundary, base, source, xy)