aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xwebmap-download2
1 files changed, 1 insertions, 1 deletions
diff --git a/webmap-download b/webmap-download
index c2178f5..6040356 100755
--- a/webmap-download
+++ b/webmap-download
@@ -38,7 +38,7 @@ def download(url, dest, dir_fd=None, headers={}, session=requests, progress=None
max_size = dl.get('max-size', 2**26) # 64MiB
logging.info('Downloading %s…', url)
destPath = Path(dest)
- dest_tmp = destPath.with_stem(f'.{destPath.stem}.new').as_posix()
+ dest_tmp = str(destPath.with_stem(f'.{destPath.stem}.new'))
try:
# delete any leftover
os.unlink(dest_tmp, dir_fd=dir_fd)