From 675eadfc7f2a82b9e0f2dbf24e3cb8315c73356a Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Mon, 3 Jun 2024 15:49:09 +0200 Subject: webmap-download: Replace pathlib.as_posix() with str(). We most likely only support POSIX systems, but best to hard code the dependency. --- webmap-download | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3