diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2024-06-03 15:49:09 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2024-06-03 16:14:09 +0200 |
commit | 675eadfc7f2a82b9e0f2dbf24e3cb8315c73356a (patch) | |
tree | e48ea869bd44764064b4b97f0902482626119761 | |
parent | a22de279bb6ae83459c766f50b9b0bb0eb707b16 (diff) |
webmap-download: Replace pathlib.as_posix() with str().
We most likely only support POSIX systems, but best to hard code the
dependency.
-rwxr-xr-x | webmap-download | 2 |
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) |